[PATCH] write the imap folder config more often

Matt Rogers <[email protected]> Sun, 4 Nov 2007 19:09:59 -0600
Newsgroups gmane.comp.kde.devel.kmail
Organization KDE
Message-ID <[email protected]>
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.

Thanks
--
Matt

(Please CC me, I'm not subscribed)

_______________________________________________
KMail developers mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kmail-devel
writeConfig-in-initializeFrom.patch (text/x-patch, 441 B)
Index: kmail/kmfolderimap.cpp
===================================================================
--- kmail/kmfolderimap.cpp	(revision 732764)
+++ kmail/kmfolderimap.cpp	(working copy)
@@ -1034,6 +1034,7 @@
   setImapPath( folderPath );
   setNoContent( mimeType == "inode/directory" );
   setNoChildren( mimeType == "message/digest" );
+  writeConfig();
 }
 
 //-----------------------------------------------------------------------------