Bug 206937 - SpamBayes function in KMail severely regressed after update to KDE 4.3.1
Summary: SpamBayes function in KMail severely regressed after update to KDE 4.3.1
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.12.1
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-10 08:45 UTC by Maria Niku
Modified: 2009-09-13 11:11 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Attached email message (2.74 KB, application/mbox)
2009-09-11 23:32 UTC, Maria Niku
Details
Attached email message 2 (2.86 KB, application/mbox)
2009-09-11 23:33 UTC, Maria Niku
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maria Niku 2009-09-10 08:45:30 UTC
Version:           1.12.1 (using KDE 4.3.1)
OS:                Linux
Installed from:    Fedora RPMs

After the update from 4.3.0 to 4.3.1 yesterday, I deleted all spam filters and re-ran the anti-spam wizard. I did not change the given settings: emails marked as spam and those marked as probable spam are moved to specified, separate folders.

Prior to the update, SpamBayes was functioning well: there were some mistakes, as is to be expected, but it learned from those quickly. Now, out of the 70-100 emails that have arrived since the update, EVERY SINGLE one has been marked as either spam or probable spam. Having manually marked all of those emails as not spam, there has been no visible change.

There are no errors related to KMail or SpamBayes in .xsession-errors. I posted about this in the KDE Community forums and was adviced by an admin to report a bug.
Comment 1 Martin Koller 2009-09-11 22:24:38 UTC
Probably the filters are wrong and match now _every_ mail.
Please check all your filters and their corresponding rules.

If you do not find anything wrong, then please attach here a mail which was marked as spam and also attach here the part of your kmailrc which contains the Filter settings.
Comment 2 Maria Niku 2009-09-11 23:32:27 UTC
Created attachment 36879 [details]
Attached email message
Comment 3 Maria Niku 2009-09-11 23:33:02 UTC
Created attachment 36880 [details]
Attached email message 2
Comment 4 Maria Niku 2009-09-11 23:33:47 UTC
I attached two email messages that were marked as spam. 

Here the spam filters in kmailrc

http://pastebin.com/m628728e4
Comment 5 Martin Koller 2009-09-12 21:52:44 UTC
Looking at your filter settings, I'd say the problem is that the last 2 filters are also applied on incoming messages !
Which means, the first adds a header, e.g.
X-Spambayes-Classification: unsure; 0.20
the second checks if that header contains "spam", which is not the case, but then the third says: mark it as spam and move it to the "spam" folder.
If you simply uncheck the box "Apply this filter to incoming messages" on the last 2, your're done.

To be sure, I also deleted all my filters, re-ran the spam wizard and also got these 4 filters - but without the "Apply this filter to incoming messages" flag on the last 2 filters.

I also checked the source code and found exactly the same: the "Classify as Spam" filter is NOT marked as being applied to incoming messages.

So, it works for me.
Comment 6 Maria Niku 2009-09-12 22:07:45 UTC
I am very glad if this problem can be sorted out so easily, many thanks for checking it. 

Unfortunately, a new problem has now emerged which prevents me from testing this. I have sent a bug report for it since ther was a crash involved:

https://bugs.kde.org/show_bug.cgi?id=207210
Comment 7 Maria Niku 2009-09-13 11:11:12 UTC
I now managed to fix my other problem and was able to test the changes to the spam controls. Everything works now. Thank you again.