aboutsummaryrefslogtreecommitdiff
path: root/src/inc.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-04-06 05:03:00 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-04-06 05:03:00 +0000
commitbeedd408b15d15073d135252043fd47d421f4ab4 (patch)
treee8ee2290f3399ffa09d1efd347b413ca99eac7ed /src/inc.c
parent2dd04f6bc82e5242566c0c829ef50a35f00f4c98 (diff)
display error dialog if the execution of the junk filter command failed.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1597 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/inc.c')
-rw-r--r--src/inc.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/inc.c b/src/inc.c
index 6e88799c..f822216b 100644
--- a/src/inc.c
+++ b/src/inc.c
@@ -1214,6 +1214,14 @@ static gint inc_drop_message(Pop3Session *session, const gchar *file)
filter_apply(prefs_common.junk_fltlist, file, fltinfo);
if (fltinfo->drop_done)
is_junk = TRUE;
+ else if (fltinfo->error == FLT_ERROR_EXEC_FAILED) {
+ alertpanel_error
+ (_("Execution of the junk filter command failed.\n"
+ "Please check the junk mail control setting."));
+ filter_info_free(fltinfo);
+ inc_session->inc_state = INC_ERROR;
+ return DROP_ERROR;
+ }
}
if (!fltinfo->drop_done && session->ac_prefs->filter_on_recv)
@@ -1226,6 +1234,14 @@ static gint inc_drop_message(Pop3Session *session, const gchar *file)
filter_apply(prefs_common.junk_fltlist, file, fltinfo);
if (fltinfo->drop_done)
is_junk = TRUE;
+ else if (fltinfo->error == FLT_ERROR_EXEC_FAILED) {
+ alertpanel_error
+ (_("Execution of the junk filter command failed.\n"
+ "Please check the junk mail control setting."));
+ filter_info_free(fltinfo);
+ inc_session->inc_state = INC_ERROR;
+ return DROP_ERROR;
+ }
}
}