call in FolderStorage::correctUnreadMsgsCount() called by KMFolderMaildir::createIndexFromContents()).
-> introduced a base ScheduledJob class and added isOpeningFolder() to it,
which is less fragile than the previous solution.
svn path=/trunk/kdepim/; revision=323036
reopening the folder (either another one would be selected, or none at all). Always save
CurrentSerialNum as well as Current (index of listviewitem), and when expiry runs,
invalidate "Current". This preserves the performance for all the cases when expiry
doesn't run. Thanks to Till for the hints on how to fix this.
CCMAIL: 78033-done@bugs.kde.org
svn path=/trunk/kdepim/; revision=317220
during expiry. Using removeMsg(QPtrList<KMMsgBase> which has an override
in folderstorage but not in kmfolderimap results in the wrong kind of
remove being done and crashes due to invalidated message pointers in the
list being iterated over during online imap folder expiry jobs.
svn path=/trunk/kdepim/; revision=312511
folder so there is less chance of it being interrupted and constantly
retried, leading to frequent search folder updateÑ.
David's fix, I'm just committing it.
svn path=/trunk/kdepim/; revision=312102
Thanks to Till for the advice on how to do that (storing folder id and using a KMMoveCommand)
Added kmkernel::findFolderById() to avoid copy/pasting yet another time
the code that looks in the 3 foldermgrs; ported the existing code to that.
CCMAIL: 43218-done@bugs.kde.org
svn path=/trunk/kdepim/; revision=311024
instead of "on exit" (which made it non-working in kontact, with session management etc.)
GUI: removed the "Warn before expiring messages" and "On Exit: Expire old messages" options.
Tasks are filed with the jobscheduler, and the job for that task is started
only if the folder isn't opened - so this needed some special handling of search
folder (asking them to try releasing a given folder) and some fixes relative to
open() and close() calls, in kmfoldercachedimap and kmfoldersearch in particular.
Don: please check the kmfoldersearch.cpp changes, in particular the added close()
CCMAIL: sanders@kde.org
svn path=/trunk/kdepim/; revision=310272