From 42c130dcf1f6163b75b7d75ab66027c27d7c5422 Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Mon, 14 Sep 2009 11:03:18 -0700 Subject: [PATCH] Fix bug in which EAS mail won't ever get sent (#2118279) Change-Id: Iedd80269bafd39a3536527ebe8902b4999eff41e --- src/com/android/exchange/SyncManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/android/exchange/SyncManager.java b/src/com/android/exchange/SyncManager.java index 2b31747b6..5899a4169 100644 --- a/src/com/android/exchange/SyncManager.java +++ b/src/com/android/exchange/SyncManager.java @@ -146,8 +146,9 @@ public class SyncManager extends Service implements Runnable { private static final String WHERE_PROTOCOL_EAS = HostAuthColumns.PROTOCOL + "=\"" + AbstractSyncService.EAS_PROTOCOL + "\""; private static final String WHERE_NOT_INTERVAL_NEVER_AND_ACCOUNT_KEY_IN = - MailboxColumns.SYNC_INTERVAL + "!=" + Mailbox.CHECK_INTERVAL_NEVER + " and " + - MailboxColumns.ACCOUNT_KEY + " in ("; + "(" + MailboxColumns.TYPE + '=' + Mailbox.TYPE_OUTBOX + + " or " + MailboxColumns.SYNC_INTERVAL + "!=" + Mailbox.CHECK_INTERVAL_NEVER + ')' + + " and " + MailboxColumns.ACCOUNT_KEY + " in ("; // Offsets into the syncStatus data for EAS that indicate type, exit status, and change count // The format is S::