Bug 149414

Summary: KMail on every start brings system down by scanning all of large mail folders
Product: [Applications] kmail Reporter: Friedrich W. H. Kossebau <kossebau>
Component: folder listAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: adam, pacho
Priority: NOR    
Version: enterprise   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Friedrich W. H. Kossebau 2007-08-31 11:49:35 UTC
Version:            (using KDE KDE 3.5.7)
Installed from:    SuSE RPMs

With the enterprise version KMail seems to (re-)scan all folders on every startup (local folders, no IMAP). At least the system goes down for quite some time (>15 min for me) with full disk activity and a lot of kio_file processes. Folder by folder over the time get their size set. Interaction with the system is very annoying.

Before upgrading from an older (>1 month) openSUSE package things worked alright.
Comment 1 Thomas McGuire 2007-09-01 16:15:49 UTC
KMail in trunk also has the folder size feature, but I don't see such problems there. There are one or two DirectorySizeJobsstarted, but nothing more.
Only the size of sent-mail, outbox and inbox is calculated at startup, not sure if that is different in enterprise.

CC'ng Till, as I think he wrote that feature.
Comment 2 Ingo Klöcker 2008-01-26 22:38:43 UTC
SVN commit 766899 by kloecker:

Added a queuing mechanism to prevent several KDirSize jobs from running concurrently when several maildir folders are checked for their size.

CCBUGS: 149414


 M  +52 -8     kmfoldermaildir.cpp  
 M  +6 -0      kmfoldermaildir.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=766899
Comment 3 Ingo Klöcker 2008-01-26 22:40:48 UTC
SVN commit 766900 by kloecker:

Merged revision 766899 from the enterprise branch

Added a queuing mechanism to prevent several KDirSize jobs from running concurrently when several maildir folders are checked for their size.

CCBUGS: 149414


 M  +52 -8     kmfoldermaildir.cpp  
 M  +6 -0      kmfoldermaildir.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=766900
Comment 4 Ingo Klöcker 2008-02-03 13:23:56 UTC
SVN commit 770314 by kloecker:

Forward ported revision 766899 from the KDE 3 enterprise branch

Added a queuing mechanism to prevent several KDirSize jobs from running concurrently when several maildir folders are checked for their size.

CCBUGS: 149414


 M  +55 -8     kmfoldermaildir.cpp  
 M  +7 -0      kmfoldermaildir.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=770314
Comment 5 Ingo Klöcker 2008-02-03 13:26:07 UTC
Fixed in KDE 3.5 enterprise branch, KDE 3.5 proper branch, and trunk.