evolution r35443 - trunk/plugins/bogo-junk-plugin



Author: mcrha
Date: Tue Apr 29 12:43:37 2008
New Revision: 35443
URL: http://svn.gnome.org/viewvc/evolution?rev=35443&view=rev

Log:
2008-04-29  Milan Crha  <mcrha redhat com>

	* bf-junk-filter.c: (pipe_to_bogofilter):
	Report errors properly. Thanks to Reid Thompson whom found it.



Modified:
   trunk/plugins/bogo-junk-plugin/ChangeLog
   trunk/plugins/bogo-junk-plugin/bf-junk-filter.c

Modified: trunk/plugins/bogo-junk-plugin/bf-junk-filter.c
==============================================================================
--- trunk/plugins/bogo-junk-plugin/bf-junk-filter.c	(original)
+++ trunk/plugins/bogo-junk-plugin/bf-junk-filter.c	Tue Apr 29 12:43:37 2008
@@ -148,7 +148,7 @@
 		res = BOGOFILTER_ERROR;
 	}
 
-	if (res != 0)
+	if (res < 0 || res > 2)
 		g_set_error (error, EM_JUNK_ERROR, res, _("Pipe to Bogofilter failed, error code: %d."), res);
 
 	return res;



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