Lines Matching refs:mailbox

64  * that require remote mailbox access. This class is used to serialize and
302 // Drop all attachment files related to this mailbox
305 // Delete the mailbox. Triggers will take care of
436 // Note: mailbox key and account key not needed - they are projected for the SELECT
454 * @param folder the mailbox to sync
930 * @param folder the mailbox it will be stored into
1084 // Demand load mailbox (note order-by to reduce thrashing here)
1085 Mailbox mailbox = null;
1095 if (mailbox == null || mailbox.mId != oldMessage.mMailboxKey) {
1096 mailbox = Mailbox.restoreMailboxWithId(mContext, oldMessage.mMailboxKey);
1097 if (mailbox == null) {
1101 deleteFromTrash = mailbox.mType == Mailbox.TYPE_TRASH;
1112 processPendingDeleteFromTrash(remoteStore, account, mailbox, oldMessage);
1162 // Demand load mailbox
1163 Mailbox mailbox = null;
1180 // Load the mailbox if it will be needed
1181 if (mailbox == null) {
1182 mailbox = Mailbox.restoreMailboxWithId(mContext, mailboxId);
1183 if (mailbox == null) {
1190 processUploadMessage(resolver, remoteStore, account, mailbox, id);
1210 // Load the mailbox if it will be needed
1211 if (mailbox == null) {
1212 mailbox = Mailbox.restoreMailboxWithId(mContext, mailboxId);
1213 if (mailbox == null) {
1220 processUploadMessage(resolver, remoteStore, account, mailbox, id);
1260 // Demand load mailbox (note order-by to reduce thrashing here)
1261 Mailbox mailbox = null;
1274 if (mailbox == null || mailbox.mId != newMessage.mMailboxKey) {
1275 mailbox = Mailbox.restoreMailboxWithId(mContext, newMessage.mMailboxKey);
1276 if (mailbox == null) {
1281 && (mailbox.mType == Mailbox.TYPE_TRASH);
1294 processPendingMoveToTrash(remoteStore, account, mailbox, oldMessage,
1297 processPendingFlagChange(remoteStore, mailbox, changeRead, changeFlagged,
1324 * Note: If the message is being uploaded into an unexpected mailbox, we *do not* upload.
1334 * @param mailbox the actual mailbox
1338 EmailContent.Account account, Mailbox mailbox, long messageId)
1346 } else if (mailbox.mType == Mailbox.TYPE_DRAFTS) {
1348 Log.d(Email.LOG_TAG, "Upsync skipped for mailbox=drafts, id=" + messageId);
1349 } else if (mailbox.mType == Mailbox.TYPE_OUTBOX) {
1351 Log.d(Email.LOG_TAG, "Upsync skipped for mailbox=outbox, id=" + messageId);
1352 } else if (mailbox.mType == Mailbox.TYPE_TRASH) {
1354 Log.d(Email.LOG_TAG, "Upsync skipped for mailbox=trash, id=" + messageId);
1355 } else if (newMessage != null && newMessage.mMailboxKey != mailbox.mId) {
1357 Log.d(Email.LOG_TAG, "Upsync skipped; mailbox changed, id=" + messageId);
1360 deleteUpdate = processPendingAppend(remoteStore, account, mailbox, newMessage);
1373 * @param mailbox
1378 private void processPendingFlagChange(Store remoteStore, Mailbox mailbox, boolean changeRead,
1388 if (mailbox.mType == Mailbox.TYPE_DRAFTS || mailbox.mType == Mailbox.TYPE_OUTBOX) {
1393 Folder remoteFolder = remoteStore.getFolder(mailbox.mDisplayName);
1427 * @param newMailbox The local trash mailbox
1429 * @param newMessage The message that was moved to the mailbox
1441 // 1. Escape early if we can't find the local mailbox
1445 // can't find old mailbox, it may have been deleted. just return.
1473 // 4. Find the remote mailbox (that we deleted from), and open it
1549 * @param oldMailbox The local trash mailbox
1593 * @param newMailbox The mailbox we're appending to
1747 EmailContent.Mailbox mailbox =
1749 if (account == null || mailbox == null) {
1750 mListeners.loadMessageForViewFailed(messageId, "null account or mailbox");
1756 Folder remoteFolder = remoteStore.getFolder(mailbox.mDisplayName);
1786 copyOneMessageToProvider(remoteMessage, account, mailbox,
1835 EmailContent.Mailbox mailbox =
1840 if (account == null || mailbox == null || message == null) {
1842 "Account, mailbox, message or attachment are null");
1852 Folder remoteFolder = remoteStore.getFolder(mailbox.mDisplayName);
2059 // find mailbox # for inbox and sync it.
2063 EmailContent.Mailbox mailbox =
2065 if (mailbox != null) {
2066 synchronizeMailboxSynchronous(account, mailbox);