Bug 258003

Summary: KMail2 does paralleled execution of filters with no limit (DoS due to CPU load)
Product: [Applications] kmail2 Reporter: Alex Richardson <arichardson.kde>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: major CC: tokoe
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alex Richardson 2010-11-26 18:40:05 UTC
Version:           unspecified (using KDE 4.5.80) 
OS:                Linux

It seems KMail spawns hundreds of spamassassin processes which eat up the CPU and also for some reason the Kontact GUI is frozen.
I have 4 POP mail accounts which I migrated today. These processes are spawned every time I start KMail, possibly could be related to fetching mail. I have set one of my POP accounts to leave the mail on the server for seven days, maybe this it filters all these messages for spam. I do not know if it happens after every automatic Mail check since I have not managed to run KMail for longer than a few minutes.

I also got a crash when I switched to the Kontact tab KMail (I always start with akregator) while the GUI was slow and unresponsive and the spamassassin processes were running, but I haven't tried to reproduce this and unfortunately I closed the backtrace.

Reproducible: Always
Comment 1 Alex Richardson 2010-11-26 19:33:20 UTC
It seems the crash I wrote about is not reproducible, however the UI is frozen for minutes after startup
Comment 2 Tobias Koenig 2011-09-17 18:13:49 UTC
Hej Alex,

current master (and future KDE 4.8) will use a separated agent for filtering, so the UI of KMail2 won't block anymore by a slow spamassasin process.

Ciao,
Tobias