Bug 253499

Summary: Kmail's Anti-Spam Wizard moves complete imap inbox into trash
Product: [Applications] kmail Reporter: Mathias Dietrich <dietrichmathias>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: major CC: matija, radu_cs85
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Mathias Dietrich 2010-10-07 13:12:46 UTC
Version:           unspecified (using KDE 4.5.1) 
OS:                Linux

When you set up a new account after configuring the spam wizard all inbox mails were moved to trash.

This can result email loss, if the trash is cleared automatically.

Reproducible: Always

Steps to Reproduce:
1. Use Mail Wizard, set up an email account and download mails.
2. Setup Anti-Spam Filter using Anti-Spam Wizard.
3. Create a second imap mail account using Mail wizard and download messages

Actual Results:  
The whole inbox is empty (of the second account), all files are moved to trash.
Subfolders at the Mail Account are as they should.

Expected Results:  
Only Spam should be filtered or nothing should be filtered as long as the filter is untrained.

Using KMail 1.13.5 and Kontact 4.4.6.
Comment 1 Radu 2010-12-19 12:23:03 UTC
What spam detection tool are you using?
Comment 2 Mathias Dietrich 2011-01-07 12:55:32 UTC
I used "Bogofilter" as Anti-Spam tool.
Comment 3 Matija Šuklje 2011-08-08 06:14:39 UTC
Something similar happened to me too on 4.7.0 just now. Suddenly all e-mail I get via IMAP get marked as spam by Bogofilter.

I even marked tens of thousands (sic!) e-mails as ham, to teach it, but it still doesn't behave nicely.

At the same time the spam state fancy headers are gone as well.
Comment 4 Matija Šuklje 2011-08-08 07:32:18 UTC
I deleted Bogofilter's database with 'rm ~/.bogofilter/wordlist.db' and am training it again using the "Spam" "Not Spam" buttons in KMail.

It seems to work now. So at least in my case I think it was Bogofilter's and not KMail's fault.

(The fancy spam headers are still missing, but that's not what this bug is about)
Comment 5 Laurent Montel 2015-04-12 10:10:02 UTC
Thank you for taking the time to file a bug report.

KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2.

We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.