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
wilder-work
Ingo Klcker 22 years ago
parent f87f32f7b5
commit 08e0a749c9
  1. 7
      kmacctmaildir.cpp

@ -175,13 +175,6 @@ void KMAcctMaildir::processNewMail(bool)
if (addedOk)
{
rc = mailFolder.expunge();
if (rc)
KMessageBox::queuedMessageBox( 0, KMessageBox::Information,
i18n( "<qt>Cannot remove mail from "
"mailbox <b>%1</b>:<br>%2</qt>" )
.arg( mailFolder.location() )
.arg( strerror( rc ) ) );
KMBroadcastStatus::instance()->setStatusMsgTransmissionCompleted( num );
}
// else warning is written already

Loading…
Cancel
Save