[Bug 143869] crash with new copy folder function
Volker Krause
vkrause at kde.org
Tue Jul 17 11:28:35 BST 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=143869
------- Additional Comments From vkrause kde org 2007-07-17 12:28 -------
SVN commit 688956 by vkrause:
Don't crash when copying/moving a folder with a corrupt IMAP cache.
CCBUG: 143869
M +7 -0 kmcommands.cpp
--- branches/kdepim/enterprise/kdepim/kmail/kmcommands.cpp #688955:688956
@ -1950,6 +1950,13 @
idx = srcFolder->find(msgBase);
assert(idx != -1);
msg = srcFolder->getMsg(idx);
+ // corrupt IMAP cache, see FolderStorage::getMsg()
+ if ( msg == 0 ) {
+ KMessageBox::error( parentWidget(), i18n("Corrupt IMAP cache detected in folder %1. "
+ "Copying of messages aborted.").arg( srcFolder->prettyURL() ) );
+ deleteLater();
+ return Failed;
+ }
}
if (srcFolder && mDestFolder &&
More information about the Kdepim-bugs
mailing list