Don't leave around mymbox.compacted when compaction fails (e.g. disk full),

otherwise kmail treats it as a real mailbox on the next restart

svn path=/branches/KDE_3_4_BRANCH/kdepim/; revision=405182
wilder-work
David Faure 21 years ago
parent 178a31ed24
commit 16f50e80d6
  1. 1
      compactionjob.cpp

@ -177,6 +177,7 @@ void MboxCompactionJob::done( int rc )
str = i18n( "Error occurred while compacting \"%1\". Compaction aborted." ).arg( mSrcFolder->label() );
kdDebug(5006) << "Error occurred while compacting " << mbox->location() << endl;
kdDebug(5006) << "Compaction aborted." << endl;
QFile::remove( mTempName );
}
mErrorCode = rc;

Loading…
Cancel
Save