Bug 336058

Summary: Spamfilter running in a loop creating duplicates
Product: [Frameworks and Libraries] Akonadi Reporter: Leszek Lesner <leszek.lesner>
Component: Mail Filter AgentAssignee: kdepim bugs <kdepim-bugs>
Status: CONFIRMED ---    
Severity: major CC: kdenis, kmh, sknauss
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Leszek Lesner 2014-06-10 19:15:29 UTC
I have two instances open of kmail (seperate computers) and spamfiltering enabled with spamassassin. 
Every now and then when a mail arrives it is run through rule 1 (spamassassin -L). This rewrites the header and the mail arrvies as new again and is rerun against spamassasin -L. This loop can go on for a while and produces dozens of duplicate mails

Reproducible: Always

Steps to Reproduce:
1. Enable spam filtering on two computers with the same imap account
2. Wait or test mail incoming

Actual Results:  
The spamfiltering process runs like wild in a loop and produces duplicates

Expected Results:  
Check incoming mail locally once and don't write a new header which makes other mail clients running thinking a new mail arrived. 

Tested on latest kmail, akonadi and spamassassin + bogofilter.

Even when kmail is running only on one computer I see In the filtering log many many rescans of the same file over and over again. Also my smartphone shows me tons of duplicates then (seems like it does not keep up with tons and tons of rewriting header mails)
Comment 1 Kai Hamich 2015-01-19 17:00:08 UTC
I can confirm this bug, bogofilter play ping pong on incoming mails when two kmail instances on different hosts are running with bogofilter....

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=766201 for more details and log files!