From 0f4366aa77b5a6a8f783e90660f82298a37f468f Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sat, 13 Nov 2010 01:46:31 +0000 Subject: [PATCH] in the account list, when trying to check mail, also try to send mail --- src/com/fsck/k9/activity/Accounts.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/com/fsck/k9/activity/Accounts.java b/src/com/fsck/k9/activity/Accounts.java index b3578ef07..854e70445 100644 --- a/src/com/fsck/k9/activity/Accounts.java +++ b/src/com/fsck/k9/activity/Accounts.java @@ -478,6 +478,15 @@ public class Accounts extends K9ListActivity implements OnItemClickListener, OnC private void onCheckMail(Account account) { MessagingController.getInstance(getApplication()).checkMail(this, account, true, true, null); + if (account == null) + { + MessagingController.getInstance(getApplication()).sendPendingMessages(null); + } + else + { + MessagingController.getInstance(getApplication()).sendPendingMessages(account, null); + } + } private void onClearCommands(Account account)