Files
evolution/plugins/bogo-junk-plugin
Milan Crha 7ab42c2897 ** Fix for bug #273041
2008-04-25  Milan Crha  <mcrha@redhat.com>

	** Fix for bug #273041

	* mail/mail.error.xml: (junk-check-error), (junk-report-error),
	(junk-not-report-error): New error messages added.
	* mail/em-junk-hook.h: (struct _EMJunkHookTarget), (em_junk_error_quark):
	* mail/em-junk-hook.c: (manage_error), (em_junk_check_junk),
	(em_junk_report_junk), (em_junk_report_non_junk):
	Allow propagation of the error from the plugin in the hook target.

	* plugins/bogo-junk-plugin/bf-junk-filter.c: (pipe_to_bogofilter), (em_junk_bf_check_junk),
	(em_junk_bf_report_junk), (em_junk_bf_report_non_junk):
	Propagate possible errors to the UI.

	* sa-junk-plugin/em-junk-filter.c: (em_junk_sa_commit_reports),
	(em_junk_sa_validate_binary): Fix function prototype.
	* sa-junk-plugin/em-junk-filter.c: (pipe_to_sa_full), (em_junk_sa_test_spamd_running),
	(em_junk_sa_test_spamassassin),	(pipe_to_sa), (em_junk_sa_run_spamd),
	(em_junk_sa_test_spamd), (em_junk_sa_is_available),
	(em_junk_sa_check_junk), (get_spamassassin_version),
	(em_junk_sa_report_junk), (em_junk_sa_report_non_junk):
	Propagate possible errors to the UI.


svn path=/trunk/; revision=35415
2008-04-25 13:12:22 +00:00
..
2008-04-25 13:12:22 +00:00
2008-04-25 13:12:22 +00:00

Bogofilter plugin for Evolution

This plugin implements junk filtering for the Evolution mailer,
provided by the bogofilter utility. Bogofilter (http://www.bogofilter.org)
if a fast and nimble mail filter using a so-called Bayesian technique to
classify junk and non-junk email.

CAVEATS:

For Evolution versions before 2.5.2, the definition file for the stock
junk filter plugin, 'org-gnome-sa-junk-plugin.eplug', must be removed
from the plugin directory to avoid conflict with any alternate junk plugin.
Simply disabling the SA plugin in the configuration won't help.
This is due to a flaw in the loading code for this hook type
(see GNOME bug #313096).

To be able to classify emails as spam, bogofilter needs to have some
messages in its ham (non-spam) wordlist. This presents something of a
chicken-and-egg problem for Evolution, because it can feed messages
to the junk filter for learning as non-junk only after these messages have been
classified as junk and moved into a junk folder (GNOME bug #322105).
Thus, if you haven't got a pre-existing bogofilter database, you may need
to feed it some messages known to be non-junk, using its
command line utility:

bogofilter -n < saved-ham-message

Alternatively, you may use Spam Trainer, which is a GUI tool that supports
drag-and-drop from Evolution:

http://spamtrainer.sourceforge.net/

Set it up to use bogofilter commands for training:
  Ham command: bogofilter -n < %f
  Spam command: bogofilter -s < %f