Summary: | crash: failed attempt to create imap folder on server creates orphan folder in folder treeview | ||
---|---|---|---|
Product: | [Applications] kmail | Reporter: | Will Stephenson <wstephenson> |
Component: | IMAP | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | gritzko, volker.hois |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Will Stephenson
2003-10-13 11:43:44 UTC
It also crashes if you just leave it standing there on the next mailcheck. Seems imap specific. *** Bug 66328 has been marked as a duplicate of this bug. *** Subject: kdepim/kmail CVS commit by tilladam: If creating a folder on an imap server fails make sure the already created folder in the foldertree is removed and guard against crashing when the non existing folder is mailchecked before it can be removed. CCMAIL: 65954-done@bugs.kde.org M +7 -1 kmacctimap.cpp 1.144 M +2 -0 kmfolderimap.cpp 1.143 --- kdepim/kmail/kmacctimap.cpp #1.143:1.144 @@ -114,6 +114,12 @@ void KMAcctImap::slotSlaveError(KIO::Sla KIO::buildErrorString(errorCode, errorMsg)); mErrorDialogIsActive = false; - } else + } else { kdDebug(5006) << "suppressing error:" << errorMsg << endl; + } + if ( errorCode == KIO::ERR_COULD_NOT_MKDIR ) { + // Creating a folder failed, remove it from the tree. + if ( mFolder ) + mFolder->listDirectory( ); + } } --- kdepim/kmail/kmfolderimap.cpp #1.142:1.143 @@ -1363,4 +1363,6 @@ void KMFolderImap::slotSetStatusResult(K void KMFolderImap::processNewMail(bool) { + // a little safety + if ( !mAccount ) return; KURL url = mAccount->getUrl(); if (mReadOnly) |