Bug 48501 - Messages should also be expired on session exit
Summary: Messages should also be expired on session exit
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.4.3
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-30 13:25 UTC by David Findlay
Modified: 2007-09-14 12:17 UTC (History)
0 users

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 David Findlay 2002-09-30 13:25:49 UTC
Version:           1.4.3 (using KDE 3.0.3)
Installed from:     (testing/unstable)
Compiler:          gcc version 2.95.4 20011002 (Debian prerelease)
OS:          Linux (i686) release 2.4.19

I leave Kmail open throughout my KDE sessions. When I log out it doesn't automatically expire the old messages. Could you make it so that it does? Thanks,

David
Comment 1 David Pashley 2002-09-30 13:35:13 UTC
A dcop call for fetching the folder list and a call for several of the folder operations whould be all that is required here. Then it could be preformmed using a simple script  for folder in $(dcop kmail KMailIface folders); do 	dcop kmail KMailIface markAllAsRead($folder) done 
Comment 2 Ingo Klöcker 2002-09-30 13:58:13 UTC
We don't do any expensive operations (like folder compaction or message  
expiration) when KMail is closed on logout because if these operations take  
too long then the session manager will kill KMail and this could cause the  
loss of messages. 
Maybe it's possible to make the session manager wait until KMail has completed 
these operations. 
  
BTW, this is no bug. 
 
Comment 3 David Faure 2004-05-11 19:03:42 UTC
Expiry is now done as a background task while kmail runs, which fixes this problem.