From cf23d90b5dea8f6c4372e0a7f79e0dea5893c160 Mon Sep 17 00:00:00 2001 From: hiro Date: Thu, 21 Oct 2010 09:06:20 +0000 Subject: added new plug-in functions for sending messages. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2690 ee746299-78ed-0310-b773-934348b2243d --- src/plugin.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'src/plugin.c') 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); +} -- cgit v1.2.3