Home | History | Annotate | Download | only in email

Lines Matching refs:Folder

41 import com.android.emailcommon.mail.Folder;
42 import com.android.emailcommon.mail.Folder.FolderType;
43 import com.android.emailcommon.mail.Folder.MessageRetrievalListener;
44 import com.android.emailcommon.mail.Folder.MessageUpdateCallbacks;
45 import com.android.emailcommon.mail.Folder.OpenMode;
235 * Synchronize the folder list with the remote server. Synchronization occurs in the
241 * TODO this needs to cache the remote folder list
266 Folder[] remoteFolders = store.updateFolders();
324 * Start background synchronization of the specified folder.
326 * @param folder
330 final Mailbox folder, MessagingListener listener) {
334 if (folder.mType == Mailbox.TYPE_OUTBOX) {
337 mListeners.synchronizeMailboxStarted(account.mId, folder.mId);
340 synchronizeMailboxSynchronous(account, folder);
346 * Start foreground synchronization of the specified folder. This is called by
350 * @param folder
353 final Mailbox folder) {
355 mListeners.synchronizeMailboxStarted(account.mId, folder.mId);
356 if ((folder.mFlags & Mailbox.FLAG_HOLDS_MAIL) == 0) {
358 mListeners.synchronizeMailboxFinished(account.mId, folder.mId, 0, 0, null);
366 SyncResults results = synchronizeMailboxGeneric(account, folder);
369 mListeners.synchronizeMailboxFinished(account.mId, folder.mId,
383 mListeners.synchronizeMailboxFailed(account.mId, folder.mId, e);
435 * @param remoteFolder the (open) Folder we're working on
440 void loadUnsyncedMessages(final Account account, Folder remoteFolder,
529 Folder remoteFolder, ArrayList<Message> unsyncedMessages,
630 Folder remoteFolder = remoteStore.getFolder(mailbox.mServerId);
695 // folder
773 // 2. Open the remote folder and create the remote folder if necessary
778 Folder remoteFolder = remoteStore.getFolder(mailbox.mServerId);
781 * If the folder is a "special" folder we need to see if it exists
783 * can't create we'll abort. This will happen on every single Pop3 folder as
796 // 3, Open the remote folder. This pre-loads certain metadata like message count.
956 * @param folder the mailbox it will be stored into
961 Mailbox folder, int loadStatus) {
973 String.valueOf(folder.mId),
979 localMessage.mMailboxKey = folder.mId;
1214 * uploaded directly to the Sent folder.
1222 // Find the Sent folder (since that's all we're uploading for now
1481 // 2. Open the remote store & folder
1482 Folder remoteFolder = remoteStore.getFolder(mailbox.mServerId);
1517 Folder toFolder = remoteStore.getFolder(newMailbox.mServerId);
1521 // We may need the message id to search for the message in the destination folder
1523 // Copy the message to its new folder
1538 // Delete the message from the remote source folder
1597 Folder remoteFolder = remoteStore.getFolder(oldMailbox.mServerId);
1615 // 6. Find the remote trash folder, and create it if not found
1616 Folder remoteTrashFolder = remoteStore.getFolder(newMailbox.mServerId);
1619 * If the remote trash folder doesn't exist we try to create it.
1624 // 7. Try to copy the message into the remote trash folder
1638 new Folder.MessageUpdateCallbacks() {
1640 // update the UID in the local trash folder, because some stores will
1659 // 8. Delete the message from the remote source folder
1682 // 2. Find the remote trash folder (that we are deleting from), and open it
1683 Folder remoteTrashFolder = remoteStore.getFolder(oldMailbox.mServerId);
1701 // 4. Delete the message from the remote trash folder
1726 // 1. Find the remote folder that we're appending to and create and/or open it
1727 Folder remoteFolder = remoteStore.getFolder(newMailbox.mServerId);
1863 // 2. Open the remote folder.
1880 Folder remoteFolder = remoteStore.getFolder(remoteServerId);
1930 // 2. Open the remote folder.
1948 Folder remoteFolder = remoteStore.getFolder(mailbox.mServerId);
2019 * if the server requires it, the message will be moved to the given sent folder.
2138 // here if we somehow don't have a sent folder, but this should never happen
2179 /** The total # of messages in the folder */