After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 509353 - Bogofilter plugin doesn't work
Bogofilter plugin doesn't work
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: general
2.12.x (obsolete)
Other All
: Normal normal
: ---
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2008-01-14 12:48 UTC by Patrick OCallaghan
Modified: 2008-03-19 05:54 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
Debug log from Evo (228.06 KB, application/octet-stream)
2008-01-21 17:11 UTC, Patrick OCallaghan
Details
Evo Junk preferences dialogue (33.68 KB, image/png)
2008-01-21 20:28 UTC, Patrick OCallaghan
Details

Description Patrick OCallaghan 2008-01-14 12:48:04 UTC
Please describe the problem:
The Bogofilter junk mail filter plugin has stopped working in this version of Evo, though it did work on previous versions. The BF database has not changed since the days when it used to work. No matter how many spam/ham messages are used for training, no incoming message is ever marked as Junk.

Steps to reproduce:
1. Use Evo
2. Receive spam
3. See it in the Inbox


Actual results:
Nothing is ever moved to the Junk folder.

Expected results:
Some messages to be moved to the Junk folder.

Does this happen every time?
Yes.

Other information:
Comment 1 Steev Klimaszewski 2008-01-14 18:01:59 UTC
I also am experiencing this bug, however, it is with evolution 2.21.4 (I haven't tried 2.21.5 but since I see nothing in the changelog, I haven't installed it yet)
Comment 2 Srinivasa Ragavan 2008-01-16 06:47:45 UTC
Patrick, can you check whether the check-for-junk works? Message->Check for junk.

Just select a junk mail and do this.
Comment 3 Patrick OCallaghan 2008-01-16 12:11:12 UTC
Srinivasa, I tried Message->Check For Junk (on a junk message in my Inbox) and nothing happened.

Just for completeness, let me say that BF is the default Junk plugin, BF is enabled, SA is disabled, and the "check for junk in Incoming" flag is on.
Comment 4 Steev Klimaszewski 2008-01-16 12:20:40 UTC
Same experience here as Patrick, although I had SA disabled, I tried enabling and then disabling, likewise with the BF, disabled and then enabled.
Comment 5 Srinivasa Ragavan 2008-01-17 06:59:54 UTC
Any of you build from source? In that case, we can meet on chat to debug more.
Comment 6 Steev Klimaszewski 2008-01-17 14:28:11 UTC
I do - I run Gentoo, just be warned, its an 850mhz and takes about 2 1/2 hours to build evolution :)  I am on #gnome-hackers - my nick is the ever original steev (I am also on Freenode)
Comment 7 Patrick OCallaghan 2008-01-17 17:11:26 UTC
One additional data point: my complaints about junk filtering are all from my home machine, which is where I mostly work, but I also recently set Evo up to use BF on my office machine and the same thing happens. This is also Fedora 8, Evo 2.12.

What makes this interesting is that I've just noticed that on the office machine I don't have a ~/.bogofilter directory, and hence no wordlist.db, but I've been merrily clicking away on the Junk icon and hearing no complaint from Evo, i.e. even when BF *cannot possibly be working* Evo doesn't say anything. The BF man page says it should give an exit status of 3 if the wordlist.db file cannot be read. Is Evo checking this?
Comment 8 Srinivasa Ragavan 2008-01-21 07:57:24 UTC
Guys, 
export CAMEL_DEBUG="junk"
export CAMEL_VERBOSE_DEBUG=1

Run Evolution with these. Beware, it can expose your personal mails on the log. mask them and put the logs here. It can help me to see what is happening. FWIW, it works for me on trunk. Possible that it is a fedora specific issue.
Comment 9 Patrick OCallaghan 2008-01-21 17:11:27 UTC
Created attachment 103349 [details]
Debug log from Evo

OK, I did as Srini requested and here's the log (compressed). I also ran Evo under gdb with a breakpoint set at pipe_to_bogofilter(), which never fired. My man-in-the-middle script for bogofilter also shows no activity.

It's pretty clear that BF is not being called.
Comment 10 Matthew Barnes 2008-01-21 17:40:52 UTC
Bogofilter is working fine for me with evolution-2.21.5-2.fc9 on Fedora 8.  My ~/bogofilter/wordlist.db file was modified just today.

Note that for Fedora 9 I split the bogofilter plugin into a separate subpackage, evolution-bogofilter.  But I've not heard any reports of that causing problems.  This sounds like a configuration issue.

Probably mentioned already on the mailing list, but just as a sanity check:

1) Make sure the Bogofilter junk plugin is enabled (Edit->Plugins).

2) In the Junk tab under Mail Preferences, make sure Bogofilter is selected
   as the "Default junk plugin" [*].

3) In the same tab, make sure you see the message "Bogofilter plugin is
   available and the binary is installed."


[*] "Default"?  Don't we mean "Active"?
Comment 11 Srinivasa Ragavan 2008-01-21 18:49:04 UTC
I think, matt's questions may help you get it working.
Comment 12 Patrick OCallaghan 2008-01-21 20:28:58 UTC
Created attachment 103363 [details]
Evo Junk preferences dialogue

I attach a screenshot of the dialogue. Note that the Default Junk plugin box looks blank, but when I click on it the word Bogofilter appears. When I click outside the box, it goes blank again.

The message "Bogofilter plugin is available and the binary is installed." does *not* appear, though both /usr/bin/bogofilter and the following:

/etc/gconf/schemas/bogo-junk-plugin.schemas
/usr/lib/evolution/2.12/plugins/liborg-gnome-bogo-junk-plugin.so
/usr/lib/evolution/2.12/plugins/org-gnome-bogo-junk-plugin.eplug

all exist.

My version of Evo is evolution-2.12.2-3.fc8. Changing to the fc9 version would mean upgrading over 150 packages to development versions. Sorry, it's not going to happen.
Comment 13 Matthew Barnes 2008-01-21 21:25:51 UTC
Try running Evolution from a terminal.  Do you see any warnings printed when you click on or around the junk plugin combo?  Looks like it's malfunctioning, which is likely the source or a direct symptom of the problem.
Comment 14 Patrick OCallaghan 2008-01-21 22:46:44 UTC
See the log I posted earlier, obtained from:

evolution > EVO_DEBUG 2&1 &

with export CAMEL_DEBUG="junk"
and export CAMEL_VERBOSE_DEBUG=1

Nothing happens when I click on the Junk icon except that the message is moved to the Junk virtual folder, *without* calling BF.
Comment 15 Patrick OCallaghan 2008-01-23 14:20:05 UTC
I've now upgrade to 2.12.3 (evolution-2.12.3-1.fc8 and evolution-data-server-1.12.3-1.fc8) with no change to the problem, i.e. junk filtering still doesn't work, /usr/bin/bogofilter is still not being called etc.
Comment 16 Patrick OCallaghan 2008-01-24 01:54:09 UTC
Following a suggestion on the Evo list, I configured a completely new user account on my machine and set up Evo under it, using Bogofilter. Judging by modifications to my man-in-the-middle log file and to the wordlist.db mod time, this instance appears to work (I'd need a longer test to see if it's actually filtering spam but at least the BF executable is being called when I hit the Junk button).

I also note that the Preferences dialogue is now correctly legible, unlike the screenshot I posted earlier.

So the problem appears to be related to Gconf and/or .evolution in my normal user account. I've no idea how to track down the problem from here on.
Comment 17 Patrick OCallaghan 2008-01-24 05:17:28 UTC
OK, I think it's been solved, thanks to help from <psmith@gnu.org>. The problem was an inconsistent Gconf database. The default_plugin entry under apps -> evolution -> mail -> junk was set to Spamassassin, even though the SA plugin was disabled. This also explains the peculiar GUI bug shown in the screenshot I posted earlier. I manually changed the field to Bogofilter and restarted Evo, and it appears to be working.

Evo needs more rigorous consistency checks for these settings.
Comment 18 Sankar P 2008-03-19 05:54:15 UTC
Closing based on comment #17 .