diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2008-12-04 05:52:13 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2008-12-04 05:52:13 +0800 |
commit | 790cdf6d53cdf22b3336984485a08a5b9f5abde8 (patch) | |
tree | 1d279a7a9b2632f80dade922265fdfaf5e8b5eda | |
parent | d89dcab094e67c999b151e22b46790b9a693ad13 (diff) | |
download | gsoc2013-evolution-790cdf6d53cdf22b3336984485a08a5b9f5abde8.tar gsoc2013-evolution-790cdf6d53cdf22b3336984485a08a5b9f5abde8.tar.gz gsoc2013-evolution-790cdf6d53cdf22b3336984485a08a5b9f5abde8.tar.bz2 gsoc2013-evolution-790cdf6d53cdf22b3336984485a08a5b9f5abde8.tar.lz gsoc2013-evolution-790cdf6d53cdf22b3336984485a08a5b9f5abde8.tar.xz gsoc2013-evolution-790cdf6d53cdf22b3336984485a08a5b9f5abde8.tar.zst gsoc2013-evolution-790cdf6d53cdf22b3336984485a08a5b9f5abde8.zip |
** Fixes bug #560420 (patch by hp@syntomax.com)
2008-12-03 Matthew Barnes <mbarnes@redhat.com>
** Fixes bug #560420 (patch by hp@syntomax.com)
* plugins/sa-junk-plugin/em-junk-filter.c (pipe_to_sa_full):
spamc and spamassassin use error codes >= 64 to denote execution
errors. Positive error codes < 64 means the message was identified
as spam.
svn path=/branches/gnome-2-24/; revision=36829
-rw-r--r-- | plugins/sa-junk-plugin/ChangeLog | 9 | ||||
-rw-r--r-- | plugins/sa-junk-plugin/em-junk-filter.c | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/plugins/sa-junk-plugin/ChangeLog b/plugins/sa-junk-plugin/ChangeLog index 4b8beeea75..78ac3ca79e 100644 --- a/plugins/sa-junk-plugin/ChangeLog +++ b/plugins/sa-junk-plugin/ChangeLog @@ -1,3 +1,12 @@ +2008-12-03 Matthew Barnes <mbarnes@redhat.com> + + ** Fixes bug #560420 (patch by hp@syntomax.com) + + * em-junk-filter.c (pipe_to_sa_full): + spamc and spamassassin use error codes >= 64 to denote execution + errors. Positive error codes < 64 means the message was identified + as spam. + 2008-09-29 Sankar P <psankar@novell.com> License Changes diff --git a/plugins/sa-junk-plugin/em-junk-filter.c b/plugins/sa-junk-plugin/em-junk-filter.c index e1a21479c5..69d06b957d 100644 --- a/plugins/sa-junk-plugin/em-junk-filter.c +++ b/plugins/sa-junk-plugin/em-junk-filter.c @@ -250,7 +250,7 @@ pipe_to_sa_full (CamelMimeMessage *msg, const char *in, char **argv, int rv_err, else res = rv_err; - if (res != 0) + if (res >= 64) g_set_error (error, EM_JUNK_ERROR, res, _("Pipe to SpamAssassin failed, error code: %d"), res); return res; |