1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-30 21:22:26 -05:00

Try to send pending messages whenever we refresh pushers. should help

with "stuck" unsent messages on push-only accounts
This commit is contained in:
Jesse Vincent 2010-10-25 03:19:43 +00:00
parent f6f9d35430
commit ddccd11ef7

View File

@ -482,6 +482,14 @@ public class MailService extends CoreService
} }
} }
} }
// Whenever we refresh our pushers, send any unsent messages
if (K9.DEBUG)
{
Log.d(K9.LOG_TAG, "PUSHREFRESH: trying to send mail in all folders!");
}
MessagingController.getInstance(getApplication()).sendPendingMessages(null);
} }
catch (Exception e) catch (Exception e)
{ {