aboutsummaryrefslogtreecommitdiff
path: root/src/plugin.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-10-21 09:06:20 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-10-21 09:06:20 +0000
commitcf23d90b5dea8f6c4372e0a7f79e0dea5893c160 (patch)
tree8697db6ca5a947b7ee0ba62456251a305e398f4b /src/plugin.c
parente89d21dd41fd5bab43cd3d70b735428d3050405e (diff)
added new plug-in functions for sending messages.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2690 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/plugin.c')
-rw-r--r--src/plugin.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/plugin.c b/src/plugin.c
index 2c6b1a2d..baead872 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -1142,3 +1142,38 @@ gint syl_plugin_alertpanel_message_with_disable(const gchar *title,
GETFUNC("alertpanel_message_with_disable");
return SAFE_CALL_ARG3_RET_VAL(func, title, message, type, 0);
}
+
+gint syl_plugin_send_message(const gchar *file, PrefsAccount *ac,
+ GSList *to_list)
+{
+ gint (*func)(const gchar *, PrefsAccount *, GSList *);
+
+ GETFUNC("send_message");
+ return SAFE_CALL_ARG3_RET_VAL(func, file, ac, to_list, -1);
+}
+
+gint syl_plugin_send_message_queue_all(FolderItem *queue, gboolean save_msgs,
+ gboolean filter_msgs)
+{
+ gint (*func)(FolderItem *, gboolean, gboolean);
+
+ GETFUNC("send_message_queue_all");
+ return SAFE_CALL_ARG3_RET_VAL(func, queue, save_msgs, filter_msgs, -1);
+}
+
+gint syl_plugin_send_message_set_reply_flag(const gchar *reply_target,
+ const gchar *msgid)
+{
+ gint (*func)(const gchar *, const gchar *);
+
+ GETFUNC("send_message_set_reply_flag");
+ return SAFE_CALL_ARG2_RET_VAL(func, reply_target, msgid, -1);
+}
+
+gint syl_plugin_send_message_set_forward_flags(const gchar *forward_targets)
+{
+ gint (*func)(const gchar *);
+
+ GETFUNC("send_message_set_forward_flags");
+ return SAFE_CALL_ARG1_RET_VAL(func, forward_targets, -1);
+}