From 08e0a749c9731a03cb7f17ec1afb4e042bd3e509 Mon Sep 17 00:00:00 2001 From: Ingo Klcker Date: Sat, 17 Jul 2004 22:53:24 +0000 Subject: [PATCH] Fix bug 74695: Lost Mail with no notification if message in Maildir has non-standard permissions It's not necessary to expunge the maildir folder because the fetched messages are already deleted by KMFolderMaildir::take(). This prevents KMail from deleting files which could not be read for some reason (wrong permissions, no email message). What's missing is showing an error message if we encounter files with wrong permissions in the Maildir account. But this can wait until after KDE 3.3. CCMAIL: 74695-fixed@bugs.kde.org svn path=/trunk/kdepim/; revision=330440 --- kmacctmaildir.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/kmacctmaildir.cpp b/kmacctmaildir.cpp index 0b0f3acbb..1ecc48547 100644 --- a/kmacctmaildir.cpp +++ b/kmacctmaildir.cpp @@ -175,13 +175,6 @@ void KMAcctMaildir::processNewMail(bool) if (addedOk) { - rc = mailFolder.expunge(); - if (rc) - KMessageBox::queuedMessageBox( 0, KMessageBox::Information, - i18n( "Cannot remove mail from " - "mailbox %1:
%2
" ) - .arg( mailFolder.location() ) - .arg( strerror( rc ) ) ); KMBroadcastStatus::instance()->setStatusMsgTransmissionCompleted( num ); } // else warning is written already