diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2011-01-20 04:49:28 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2011-01-20 04:49:28 +0000 |
commit | e4c8db7b4c62806e29d8f6aad4180642f7d994d6 (patch) | |
tree | c3cf40dac3babebae8a6ea0dbc1eae610f489b5f /src/inc.c | |
parent | 890921332f2f03f0aaead00067321f7b5137bcd2 (diff) |
check the return value of junk filter command and show error dialog on failure.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2809 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/inc.c')
-rw-r--r-- | src/inc.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1313,7 +1313,10 @@ static gint inc_drop_message(Pop3Session *session, const gchar *file) fltinfo); if (fltinfo->drop_done) is_junk = TRUE; - else if (fltinfo->error == FLT_ERROR_EXEC_FAILED) { + else if (fltinfo->error == FLT_ERROR_EXEC_FAILED || + fltinfo->last_exec_exit_status >= 3) { + g_warning("inc_drop_message: junk filter command returned %d", + fltinfo->last_exec_exit_status); alertpanel_error (_("Execution of the junk filter command failed.\n" "Please check the junk mail control setting.")); @@ -1337,7 +1340,10 @@ static gint inc_drop_message(Pop3Session *session, const gchar *file) msginfo, fltinfo); if (fltinfo->drop_done) is_junk = TRUE; - else if (fltinfo->error == FLT_ERROR_EXEC_FAILED) { + else if (fltinfo->error == FLT_ERROR_EXEC_FAILED || + fltinfo->last_exec_exit_status >= 3) { + g_warning("inc_drop_message: junk filter command returned %d", + fltinfo->last_exec_exit_status); alertpanel_error (_("Execution of the junk filter command failed.\n" "Please check the junk mail control setting.")); |