From b490773546752f87f0e90cccef8a0f49c8ac4433 Mon Sep 17 00:00:00 2001 From: Joe Steele Date: Fri, 7 Mar 2014 20:08:57 -0500 Subject: [PATCH] Include send failures in the K9mail-errors folder --- src/com/fsck/k9/controller/MessagingController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/fsck/k9/controller/MessagingController.java b/src/com/fsck/k9/controller/MessagingController.java index bcd78362a..bbdc64ac9 100644 --- a/src/com/fsck/k9/controller/MessagingController.java +++ b/src/com/fsck/k9/controller/MessagingController.java @@ -3599,6 +3599,7 @@ public class MessagingController implements Runnable { } notifyUserIfCertificateProblem(mApplication, e, account, false); + addErrorMessage(account, "Failed to send message", e); message.setFlag(Flag.X_SEND_FAILED, true); Log.e(K9.LOG_TAG, "Failed to send message", e); for (MessagingListener l : getListeners()) { @@ -3611,6 +3612,7 @@ public class MessagingController implements Runnable { for (MessagingListener l : getListeners()) { l.synchronizeMailboxFailed(account, localFolder.getName(), getRootCauseMessage(e)); } + addErrorMessage(account, "Failed to fetch message for sending", e); lastFailure = e; } }