evolution r36828 - trunk/plugins/sa-junk-plugin



Author: mbarnes
Date: Wed Dec  3 21:48:56 2008
New Revision: 36828
URL: http://svn.gnome.org/viewvc/evolution?rev=36828&view=rev

Log:
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.



Modified:
   trunk/plugins/sa-junk-plugin/ChangeLog
   trunk/plugins/sa-junk-plugin/em-junk-filter.c

Modified: trunk/plugins/sa-junk-plugin/em-junk-filter.c
==============================================================================
--- trunk/plugins/sa-junk-plugin/em-junk-filter.c	(original)
+++ trunk/plugins/sa-junk-plugin/em-junk-filter.c	Wed Dec  3 21:48:56 2008
@@ -250,7 +250,7 @@
 		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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]