Home | History | Annotate | Download | only in email

Lines Matching defs:mailbox

26 import com.android.email.provider.EmailContent.Mailbox;
176 * Request a remote update of a mailbox. For use by the timed service.
208 * Request a remote update of a mailbox.
212 * downloading some/all of the messages in this mailbox, but that should be interruptable.
234 Mailbox mailbox =
235 EmailContent.Mailbox.restoreMailboxWithId(mProviderContext, mailboxId);
236 if (account == null || mailbox == null) {
239 mLegacyController.synchronizeMailbox(account, mailbox, mLegacyListener);
285 * Saves the message to a mailbox of given type.
289 * @param mailboxType the mailbox type (e.g. Mailbox.TYPE_DRAFTS).
300 * @param mailboxType the mailbox type (e.g. EmailContent.Mailbox.TYPE_TRASH)
301 * @return the id of the mailbox. The mailbox is created if not existing.
302 * Returns Mailbox.NO_MAILBOX if the accountId or mailboxType are negative.
307 return Mailbox.NO_MAILBOX;
310 Mailbox.findMailboxOfType(mProviderContext, accountId, mailboxType);
311 return mailboxId == Mailbox.NO_MAILBOX ? createMailbox(accountId, mailboxType) : mailboxId;
315 * Returns the server-side name for a specific mailbox.
317 * @param mailboxType the mailbox type
318 * @return the resource string corresponding to the mailbox type, empty if not found.
323 case Mailbox.TYPE_INBOX:
326 case Mailbox.TYPE_OUTBOX:
329 case Mailbox.TYPE_DRAFTS:
332 case Mailbox.TYPE_TRASH:
335 case Mailbox.TYPE_SENT:
338 case Mailbox.TYPE_JUNK:
346 * Create a mailbox given the account and mailboxType.
355 Mailbox box = new Mailbox();
386 long outboxId = findOrCreateMailboxOfType(accountId, Mailbox.TYPE_OUTBOX);
411 final long sentboxId = findOrCreateMailboxOfType(accountId, Mailbox.TYPE_SENT);
430 Mailbox.findMailboxOfType(mProviderContext, accountId, Mailbox.TYPE_OUTBOX);
431 if (outboxId == Mailbox.NO_MAILBOX) {
453 final long sentboxId = findOrCreateMailboxOfType(accountId, Mailbox.TYPE_SENT);
490 resolver.update(Mailbox.CONTENT_URI, cv,
506 * Increase the load count for a given mailbox, and trigger a refresh. Applies only to
509 * @param mailboxId the mailbox
516 Mailbox mailbox = Mailbox.restoreMailboxWithId(mProviderContext, mailboxId);
517 if (mailbox == null) {
521 mailbox.mAccountKey);
532 Uri uri = ContentUris.withAppendedId(Mailbox.ADD_TO_FIELD_URI, mailboxId);
535 mailbox.mVisibleLimit += info.mVisibleLimitIncrement;
536 mLegacyController.synchronizeMailbox(account, mailbox, mLegacyListener);
581 * TODO: "get mailbox of type n for account a" should be a utility
594 // 2. Confirm that there is a trash mailbox available. If not, create one
595 long trashMailboxId = findOrCreateMailboxOfType(accountId, Mailbox.TYPE_TRASH);
739 * @param mailboxId the owner mailbox
861 * @param mailboxId The mailbox being operated on
896 * @param mailboxId The mailbox being operated on (may be unknown at start)
1195 Mailbox mbx = Mailbox.restoreMailboxWithId(mProviderContext, mailboxId);
1196 // The mailbox could have disappeared if the server commanded it