Re: [PATCH] write the imap folder config more often

Till Adam <[email protected]> Tue, 6 Nov 2007 14:36:09 +0100
Newsgroups gmane.comp.kde.devel.kmail
Organization KDAB
Message-ID <[email protected]>
On Monday 05 November 2007 02:09:59 Matt Rogers wrote:
> Hi,
>
> I've been running into cases where when closing KMail, imap folders
> would be written out with empty ImapPath keys unless I opened the
> folder before closing KMail.
>
> I've fixed this by calling KMFolderImap::writeConfig from
> KMFolderIMap::initializeFrom. Since I'm not sure this is the right
> approach, I'm sending the patch to the list for review first.

That sounds more like broken open/close refcounting to me. Is it possible that 
hthe folder is prematurely closed (which writes the old, empty config) and 
hten re-opened? There's debug output that shows what opens and closes a 
folder, to help track down such issues.

Till

-- 
Till Adam -- [email protected], [email protected]
KDAB, Platform-independent software solutions

_______________________________________________
KMail developers mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kmail-devel
signature.asc (application/pgp-signature, 186 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQBHMG3KtrsWGirveVsRAg20AJ9ExH0PXgnhqFR0S8MlH5/r+VOZdACeJss6
7EpCtpD4nHeq+Ce7caI+XUs=
=2FGc
-----END PGP SIGNATURE-----