Fix bug in which EAS mail won't ever get sent (#2118279)

Change-Id: Iedd80269bafd39a3536527ebe8902b4999eff41e
This commit is contained in:
Marc Blank 2009-09-14 11:03:18 -07:00
parent e59c8725c5
commit 42c130dcf1

View File

@ -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<type_char>:<exit_char>:<change_count>