Bug 336058 - Spamfilter running in a loop creating duplicates
Summary: Spamfilter running in a loop creating duplicates
Status: CONFIRMED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Mail Filter Agent (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-10 19:15 UTC by Leszek Lesner
Modified: 2017-01-13 21:49 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!