diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2012-01-06 08:42:40 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2012-01-06 08:42:40 +0000 |
commit | 07d534bd00afb989cfd472eb22f463d31be71b03 (patch) | |
tree | 76ec992f3c508b790d9f5ae4b7471ed18aaee7c0 /src/inc.c | |
parent | a66da11c866424de50962209f38708a15b61b2d3 (diff) |
added new plug-in signals to notify start and end of receiving.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3005 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/inc.c')
-rw-r--r-- | src/inc.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -61,6 +61,7 @@ #include "filter.h" #include "folder.h" #include "procheader.h" +#include "plugin.h" static GList *inc_dialog_list = NULL; @@ -167,6 +168,8 @@ static void inc_finished(MainWindow *mainwin, gint new_messages) trayicon_set_notify(TRUE); } + syl_plugin_signal_emit("inc-mail-finished", new_messages); + inc_block_notify(FALSE); if (new_messages <= 0 && !prefs_common.scan_all_after_inc) return; @@ -213,6 +216,8 @@ void inc_mail(MainWindow *mainwin) summary_write_cache(mainwin->summaryview); main_window_lock(mainwin); + syl_plugin_signal_emit("inc-mail-start", cur_account); + if (prefs_common.use_extinc && prefs_common.extinc_cmd) { /* external incorporating program */ if (execute_command_line(prefs_common.extinc_cmd, FALSE) != 0) { @@ -406,6 +411,8 @@ gint inc_account_mail(MainWindow *mainwin, PrefsAccount *account) summary_write_cache(mainwin->summaryview); main_window_lock(mainwin); + syl_plugin_signal_emit("inc-mail-start", account); + new_msgs = inc_account_mail_real(mainwin, account); inc_finished(mainwin, new_msgs); @@ -431,6 +438,8 @@ void inc_all_account_mail(MainWindow *mainwin, gboolean autocheck) summary_write_cache(mainwin->summaryview); main_window_lock(mainwin); + syl_plugin_signal_emit("inc-mail-start", NULL); + if (prefs_common.inc_local) { new_msgs = inc_spool(); if (new_msgs < 0) |