1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 19:52:17 -05:00

When mail is sent successfully, cancel the "couldn't send mail"

notification
This commit is contained in:
Jesse Vincent 2010-12-19 01:30:11 +00:00
parent b59eb6c69f
commit eda76640c0

View File

@ -3613,13 +3613,6 @@ public class MessagingController implements Runnable
lastFailure = e; lastFailure = e;
} }
} }
if (localFolder.getMessageCount() == 0)
{
// No longer delete the empty local outbox every time we finish sending mail
// There's no real win to it and it makes the folder selection UI extra stupid
// (We'd need a textentry widget to set the Outbox folder rather than a folder select widget)
// localFolder.delete(false);
}
for (MessagingListener l : getListeners()) for (MessagingListener l : getListeners())
{ {
l.sendPendingMessagesCompleted(account); l.sendPendingMessagesCompleted(account);
@ -3645,6 +3638,9 @@ public class MessagingController implements Runnable
} }
finally finally
{ {
if (lastFailure == null) {
cancelNotification(K9.SEND_FAILED_NOTIFICATION - account.getAccountNumber());
}
closeFolder(localFolder); closeFolder(localFolder);
} }
} }