aboutsummaryrefslogtreecommitdiff
path: root/src/inc.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2012-01-06 08:42:40 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2012-01-06 08:42:40 +0000
commit07d534bd00afb989cfd472eb22f463d31be71b03 (patch)
tree76ec992f3c508b790d9f5ae4b7471ed18aaee7c0 /src/inc.c
parenta66da11c866424de50962209f38708a15b61b2d3 (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.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/inc.c b/src/inc.c
index 661aa394..9f16004d 100644
--- a/src/inc.c
+++ b/src/inc.c
@@ -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)