diff options
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) |