Hello,
I've massaged my Bogofilter junk plugin into a patch for inclusion in
the Evolution source tree, attached below.
The plugin is included in the experimental list.
Index: configure.in
===
RCS file: /cvs/gnome/evolution/configure.in,v
retrieving revision 1.864
diff -u -r1.864 configure.in
--- configure.in 19 Dec 2005 11:23:08 - 1.864
+++ configure.in 19 Dec 2005 12:44:52 -
@@ -101,6 +101,7 @@
NO_UNDEFINED='-no-undefined'
SOEXT='.dll'
SA_JUNK_PLUGIN=''
+BF_JUNK_PLUGIN=''
DL_LIB=''
SOFTOKN3_LIB=''
HAL_REQUIREMENT=''
@@ -109,6 +110,7 @@
NO_UNDEFINED=''
SOEXT='.so'
SA_JUNK_PLUGIN=sa-junk-plugin
+BF_JUNK_PLUGIN=bf-junk-plugin
DL_LIB='-ldl'
SOFTOKN3_LIB='-lsoftokn3'
HAL_REQUIREMENT='hal'
@@ -1403,8 +1405,8 @@
all_plugins_standard=$plugins_standard
plugins_experimental_always=backup-restore folder-unsubscribe mail-to-meeting mail-remote prefer-plain save-attachments
-plugins_experimental=$plugins_experimental $IPOD_SYNC
-all_plugins_experimental=$plugins_experimental_always ipod-sync
+plugins_experimental=$plugins_experimental $IPOD_SYNC $BF_JUNK_PLUGIN
+all_plugins_experimental=$plugins_experimental_always bf-junk-plugin ipod-sync
case x$enable_plugins in
xno)
@@ -1701,6 +1703,7 @@
plugins/groupwise-features/Makefile
plugins/mail-account-disable/Makefile
plugins/sa-junk-plugin/Makefile
+plugins/bf-junk-plugin/Makefile
plugins/ipod-sync/Makefile
plugins/publish-calendar/Makefile
smime/Makefile
Index: po/POTFILES.in
===
RCS file: /cvs/gnome/evolution/po/POTFILES.in,v
retrieving revision 1.291
diff -u -r1.291 POTFILES.in
--- po/POTFILES.in 18 Dec 2005 12:31:19 - 1.291
+++ po/POTFILES.in 19 Dec 2005 12:44:56 -
@@ -274,6 +274,7 @@
plugins/backup-restore/org-gnome-backup-restore.xml
plugins/bbdb/bbdb.c
plugins/bbdb/org-gnome-evolution-bbdb.eplug.xml
+plugins/bf-junk-plugin/org-gnome-bf-junk-plugin.eplug.xml
plugins/calendar-file/org-gnome-calendar-file.eplug.xml
plugins/calendar-http/calendar-http.c
plugins/calendar-http/org-gnome-calendar-http.eplug.xml
Index: plugins/bf-junk-plugin/ChangeLog
===
RCS file: plugins/bf-junk-plugin/ChangeLog
diff -N plugins/bf-junk-plugin/ChangeLog
--- /dev/null 1 Jan 1970 00:00:00 -
+++ plugins/bf-junk-plugin/ChangeLog 1 Jan 1970 00:00:00 -
@@ -0,0 +1,10 @@
+2005-12-18 Mikhail Zabaluev [EMAIL PROTECTED]
+
+* Makefile.am, org-gnome-bf-junk-plugin.eplug.xml:
+Adapted for inclusion in the Evolution source tree.
+
+2005-11-22 Mikhail Zabaluev [EMAIL PROTECTED]
+
+* README: Added reference to Spam Trainer.
+
+* README: Reflect on the fix for bug #313096 that made it to Evolution 2.5.2.
Index: plugins/bf-junk-plugin/Makefile.am
===
RCS file: plugins/bf-junk-plugin/Makefile.am
diff -N plugins/bf-junk-plugin/Makefile.am
--- /dev/null 1 Jan 1970 00:00:00 -
+++ plugins/bf-junk-plugin/Makefile.am 1 Jan 1970 00:00:00 -
@@ -0,0 +1,20 @@
+INCLUDES = \
+ -I$(top_srcdir) \
+ $(EVOLUTION_MAIL_CFLAGS)
+
[EMAIL PROTECTED]@
+
+plugin_DATA = org-gnome-bf-junk-plugin.eplug
+plugin_LTLIBRARIES = liborg-gnome-bf-junk-plugin.la
+
+liborg_gnome_bf_junk_plugin_la_SOURCES = bf-junk-filter.c
+liborg_gnome_bf_junk_plugin_la_LDFLAGS = -module -avoid-version $(NO_UNDEFINED)
+
+BUILT_SOURCES = $(plugin_DATA) $(error_DATA)
+
+CLEANFILES = $(BUILT_SOURCES)
+
+EXTRA_DIST = \
+ org-gnome-bf-junk-plugin.eplug.xml
+
+
Index: plugins/bf-junk-plugin/README
===
RCS file: plugins/bf-junk-plugin/README
diff -N plugins/bf-junk-plugin/README
--- /dev/null 1 Jan 1970 00:00:00 -
+++ plugins/bf-junk-plugin/README 1 Jan 1970 00:00:00 -
@@ -0,0 +1,34 @@
+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. Thus, if you haven't got a