Training problems on version 1.0.2

Nigel Henry cave.dnb at tiscali.fr
Tue Jul 25 14:49:37 CEST 2006


On Tuesday 25 July 2006 05:08, David Relson wrote:
> On Tue, 25 Jul 2006 01:55:45 +0200
> Nigel Henry wrote:
>
> ....[snip]...
>
> > Hi David. I was trying,  bogofilter -sv Mail/Spam/cur ,  and was
> > getting an error about the options needing to be first, but adding
> > the "-B" has fixed that now.
> >
> > Next problem I've to try and solve, is why bogofilter is processing
> > all the incoming mail, and sending the whole lot to my temporary
> > "spam" folder. Thats for tomorrow, as it's late.

> > Nigel.
>
> Check the rule that moves a classified message to the spam folder.  The
> two ways that come to mind are checking the X-Bogosity line and
> checking bogofilter's exit code.  Personally I use the X-Bogosity line,
> but both methods work.

The only 2 examples of setting up the filters in Kmail were both using quite 
old versions of Bogofilter. In the case of Decibels tutorial, it is based on 
version-0.13.7.3. 
http://webpages.charter.net/decibelshelp/LinuxHelp_bogofilter.html

The guy helping me from the KDE list is also using an older version, as the 
filter setup was still using "Yes"  rather than "Spam".

The bogofilter filter which processes the spam seemed to be working ok, and as 
suggested, I checked the box in "Advanced Options" which says "If this filter 
matches stop processing here" .  I checked the mail, and one message had come 
in, and was in the Inbox, and checked the headers. Bogocity had correctly 
identified it as spam. Next I went back into "Filters" and unchecked that 
box.  From that time on all the mail coming in, ended up going straight to 
the spam directory I'd set up to check for false positives before sending it 
to the trash.

The example bogofilter_is_spam filter that I had, had only one line in filter 
criteria "X-Bogocity      contains        Yes (changed that to Spam)".  
Filter actions had a remove header line for X-Bogocity, and X-Attachments, 
and a file into folder line leading to the "Spam" folder.

With this setup everything was ending up in the Spam folder.

After some headscratching, I setup 3 lines in the filter criteria section.
X-Bogosity   contains    Spam
X-Bogocity   contains    Ham
X-Bogocity   contains    Unsure
along with a couple more file into folder lines, pointing to the Inbox, and 
the temporary unsure box.

Now everything is being sent to the Inbox, but the headers show that Bogocity 
is correctly identifying the mail. Ham is Ham, Spam is Spam, and some Spam is 
Unsure.

Back to the bogofilter_is_spam filter, filter criteria section. I leave the 
first line.
X-Bogocity      contains                        Spam
change the second line to.
X=Bogocity     doesn't contain            Ham
and change the Unsure line to
X-Bogocity      doesn't contain            Unsure

Next remove the file into folder line for Inbox, and unsure, then apply, which 
results in the "X-Bogocity    doesn't contain    Unsure"   line being greyed 
out, and upon opening configure filters again, has now disappeared.

Now when I check mail, the Inbox gets the Ham, showing Bogocity  stuff in the 
headers identifying the mail as Ham, and the spam holding box gets the Spam, 
with no Bogocity stuff in the headers.

The only thing left to do now, is find out how to get mail identified as 
Unsure by bogofilter, sent to the unsure holding box. As I havn't received 
any more mail labelled as unsure yet, I don't know where it's going to end 
up.

Sorry for the very long post.  We could do with somewhere to put more up to 
date info for configuring filters with specific E-mail clients, etc. The 
stuff  found with Google is quite ancient info.

Thanks.

Nigel.




More information about the Bogofilter mailing list