Merge "Don't sync messages moved from the sent folder"

This commit is contained in:
Todd Kennedy 2011-03-17 13:35:35 -07:00 committed by Android (Google) Code Review
commit a9f5d0ab94

View File

@ -1247,6 +1247,11 @@ public class MessagingController implements Runnable {
}
// upsync the message
long id = upsyncs2.getLong(EmailContent.Message.ID_PROJECTION_COLUMN);
EmailContent.Message newMessage =
EmailContent.Message.restoreMessageWithId(mContext, id);
if (newMessage != null && newMessage.mMailboxKey != mailboxId) {
continue; // The message moved to a different mailbox; skip it
}
lastMessageId = id;
processUploadMessage(resolver, remoteStore, account, mailbox, id);
}