Searched refs:mailbox (Results 1 - 21 of 21) sorted by relevance

/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/
H A DMailboxField.java32 private final Mailbox mailbox; field in class:MailboxField
35 protected MailboxField(final String name, final String body, final String raw, final Mailbox mailbox, final ParseException parseException) { argument
37 this.mailbox = mailbox;
42 return mailbox;
53 Mailbox mailbox = null;
58 mailbox = mailboxList.get(0);
67 return new MailboxField(name, body, raw, mailbox, parseException);
/packages/apps/Email/provider_src/com/android/email/provider/
H A DEmailConversationCursor.java47 * any pending notifications for the corresponding mailbox should be canceled). We also handle
48 * getExtras() to provide a snapshot of the mailbox's status
70 Mailbox mailbox = Mailbox.restoreMailboxWithId(context, mailboxId);
72 if (mailbox != null) {
73 mMailboxTypeId = mailbox.mType;
75 mExtras.putInt(UIProvider.CursorExtraKeys.EXTRA_TOTAL_COUNT, mailbox.mTotalCount);
76 if (mailbox.mUiSyncStatus == EmailContent.SYNC_STATUS_BACKGROUND
77 || mailbox.mUiSyncStatus == EmailContent.SYNC_STATUS_USER
78 || mailbox.mUiSyncStatus == EmailContent.SYNC_STATUS_LIVE
79 || mailbox
[all...]
H A DFolderPickerActivity.java77 // If we already have a trash mailbox, we're done (if in setup; a race?)
187 // If we already have a mailbox of this type, change it back to generic mail type
196 // Change this mailbox to be of the desired type
197 Mailbox mailbox = Mailbox.restoreMailboxWithId(this, id);
198 if (mailbox != null) {
201 ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailbox.mId), values,
H A DEmailProvider.java438 * When we sync folders, we do two passes: First to create the mailbox rows, and second
447 // Update the parentKey for each mailbox row to match the _id of the row whose
454 // update mailbox set parentKey = (select _id from mailbox as b where
455 // mailbox.parentServerId=b.serverId and mailbox.parentServerId not null and
456 // mailbox.accountKey=b.accountKey)
468 // update mailbox set parentKey = -1 where parentKey=0 or parentKey is null;
520 // Clear mailbox sync status
593 // Get the mailbox ke
4862 uiSaveMessage(Message msg, Mailbox mailbox, Bundle extras) argument
5822 startSync(final Mailbox mailbox, final int deltaMessageCount) argument
5848 uiFolderRefresh(final Mailbox mailbox, final int deltaMessageCount) argument
5880 uiFolderLoadMore(final Mailbox mailbox) argument
[all...]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/
H A DMailboxList.java61 * Dumps a representation of this mailbox list to
66 Mailbox mailbox = get(i);
67 System.out.println(mailbox.toString());
/packages/apps/Email/provider_src/com/android/email/mail/
H A DStore.java162 * @param type The type of mailbox
163 * @return true if the given type of mailbox can be synced.
200 * Updates the fields within the given mailbox. Only the fields that are important to
203 protected static void updateMailbox(Mailbox mailbox, long accountId, String mailboxPath, argument
205 mailbox.mAccountKey = accountId;
206 mailbox.mDelimiter = delimiter;
212 mailbox.mDisplayName = displayPath;
214 mailbox.mFlags = Mailbox.FLAG_HOLDS_MAIL | Mailbox.FLAG_ACCEPTS_MOVED_MAIL;
216 mailbox.mFlagVisible = true;
217 //mailbox
[all...]
/packages/apps/Email/provider_src/com/android/email/service/
H A DImapService.java92 * Simple cache for last search result mailbox by account and serverId, since the most common
93 * case will be repeated use of the same mailbox
235 // Note: mailbox key and account key not needed - they are projected for the SELECT
251 * @param toMailbox the destination mailbox we're syncing
282 final Mailbox mailbox, Folder remoteFolder, ArrayList<Message> unsyncedMessages,
325 message, account.mId, mailbox.mId);
357 * @param mailbox the mailbox to sync
363 final Account account, Store remoteStore, final Mailbox mailbox, final boolean loadMore,
367 LogUtils.d(Logging.LOG_TAG, "synchronizeMailboxGeneric " + account + " " + mailbox
281 downloadFlagAndEnvelope(final Context context, final Account account, final Mailbox mailbox, Folder remoteFolder, ArrayList<Message> unsyncedMessages, HashMap<String, LocalMessageInfo> localMessageMap, final ArrayList<Long> unseenMessages) argument
362 synchronizeMailboxGeneric(final Context context, final Account account, Store remoteStore, final Mailbox mailbox, final boolean loadMore, final boolean uiRefresh) argument
1037 processUploadMessage(Context context, Store remoteStore, Mailbox mailbox, long messageId, boolean manualSync) argument
1082 processPendingDataChange(final Context context, Store remoteStore, Mailbox mailbox, boolean changeRead, boolean changeFlagged, boolean changeMailbox, boolean changeAnswered, EmailContent.Message oldMessage, final EmailContent.Message newMessage) argument
1323 processPendingAppend(Context context, Store remoteStore, Mailbox mailbox, EmailContent.Message message, boolean manualSync) argument
[all...]
H A DPopImapSyncAdapterService.java82 * @return whether or not this mailbox retrieves its data from the server (as opposed to just
83 * a local mailbox that is never synced).
106 Mailbox mailbox = Mailbox.restoreMailboxWithId(context, mailboxId);
107 if (mailbox == null) return;
108 Account account = Account.restoreAccountWithId(context, mailbox.mAccountKey);
112 if ((mailbox.mType != Mailbox.TYPE_OUTBOX) &&
113 !loadsFromServer(context, mailbox, protocol)) {
114 // This is an update to a message in a non-syncing mailbox; delete this from the
117 new String[] {Long.toString(mailbox.mId)});
120 LogUtils.d(TAG, "About to sync mailbox
[all...]
H A DEmailServiceStub.java100 final Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, mailboxId);
101 if (mailbox == null) return;
102 final Account account = Account.restoreAccountWithId(mContext, mailbox.mAccountKey);
158 Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, message.mMailboxKey);
159 if (mailbox == null) {
163 if (mailbox.mType == Mailbox.TYPE_OUTBOX) {
172 mailbox = Mailbox.restoreMailboxWithId(mContext, sourceMsg.mMailboxKey);
176 } else if (mailbox.mType == Mailbox.TYPE_SEARCH && message.mMainMailboxKey != 0) {
177 mailbox = Mailbox.restoreMailboxWithId(mContext, message.mMainMailboxKey);
180 if (account == null || mailbox
[all...]
H A DPop3Service.java155 // Note: mailbox key and account key not needed - they are projected
166 * @param toMailbox the destination mailbox we're syncing
226 * @param mailbox the mailbox to sync
231 final Mailbox mailbox, final int deltaMessageCount) throws MessagingException {
236 if (mailbox.mType != Mailbox.TYPE_INBOX) {
251 String.valueOf(mailbox.mId)
270 Pop3Folder remoteFolder = (Pop3Folder)remoteStore.getFolder(mailbox.mServerId);
309 mailbox.updateMessageCount(context, remoteMessageCount);
318 * Get all messageIds in the mailbox
230 synchronizePop3Mailbox(final Context context, final Account account, final Mailbox mailbox, final int deltaMessageCount) argument
[all...]
/packages/apps/Email/provider_src/com/android/email/mail/store/
H A DImapStore.java332 * Creates a mailbox hierarchy out of the flat data provided by the server.
339 final Mailbox mailbox = folder.mMailbox;
340 int delimiterIdx = mailbox.mServerId.lastIndexOf(mailbox.mDelimiter);
358 mailbox.mParentKey = parentKey;
359 mailbox.mParentServerId = parentPath;
365 * exist in the local database, a new row will immediately be created in the mailbox table.
368 * @param accountId The ID of the account the mailbox is to be associated with
369 * @param mailboxPath The path of the mailbox to add
371 * @param selectable If {@code true}, the mailbox ca
374 addMailbox(Context context, long accountId, String mailboxPath, char delimiter, boolean selectable, Mailbox mailbox) argument
[all...]
H A DPop3Store.java59 /** The name of the only mailbox available to POP3 accounts */
106 Mailbox mailbox = Mailbox.restoreMailboxOfType(mContext, mAccount.mId, Mailbox.TYPE_INBOX);
107 if (mailbox == null) {
108 mailbox = Mailbox.newSystemMailbox(mContext, mAccount.mId, Mailbox.TYPE_INBOX);
110 if (mailbox.isSaved()) {
111 mailbox.update(mContext, mailbox.toContentValues());
113 mailbox.save(mContext);
115 return new Folder[] { getFolder(mailbox.mServerId) };
H A DImapFolder.java84 /** The local mailbox associated with this remote folder */
1214 final Mailbox mailbox = mMailbox;
1215 if (!mailbox.isSaved()) {
1216 mailbox.save(context);
1217 mHash = mailbox.getHashes();
1219 Object[] hash = mailbox.getHashes();
1221 mailbox.update(context, mailbox.toContentValues());
1250 throw new MessagingException("Can't open mailbox: "
/packages/apps/Email/src/com/android/email2/ui/
H A DMailActivityEmail.java54 EmailProvider.LEGACY_AUTHORITY, "view/mailbox", MATCH_LEGACY_SHORTCUT_INTENT);
67 final Mailbox mailbox = Mailbox.restoreMailboxWithId(this, mailboxId);
68 if (mailbox == null) {
69 LogUtils.e(LOG_TAG, "unable to restore mailbox");
73 final Intent viewIntent = getViewIntent(mailbox.mAccountKey, mailboxId);
126 LogUtils.e(LOG_TAG, "Null folder cursor for account %d, mailbox %d",
136 LogUtils.e(LOG_TAG, "Empty folder cursor for account %d, mailbox %d",
/packages/apps/Email/src/com/android/email/activity/setup/
H A DMailboxSettings.java65 * It's used to update per-mailbox sync settings. It normally updates Mailbox settings, unless
66 * the target mailbox is Inbox, in which case it updates Account settings instead.
229 private static final String BUNDLE_MAILBOX = "MailboxSettings.mailbox";
238 /** The maximum lookback allowed for this mailbox, or 0 if no max. */
317 public static final String RESULT_KEY_MAILBOX = "mailbox";
331 final Mailbox mailbox = Mailbox.restoreMailboxWithId(getContext(), mMailboxId);
332 result.put(RESULT_KEY_MAILBOX, mailbox);
335 if (mailbox == null) {
341 ContentUris.withAppendedId(Account.CONTENT_URI, mailbox.mAccountKey),
372 final Mailbox mailbox
[all...]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/parser/
H A DAddressListParser.jj183 void mailbox() :
184 {/*@bgen(jjtree) mailbox */
190 {/*@bgen(jjtree) mailbox */
265 [ mailbox() ]
268 [ mailbox() ]
H A DAddressListParser.java192 final public void mailbox() throws ParseException { method in class:AddressListParser
193 /*@bgen(jjtree) mailbox */
281 mailbox();
302 mailbox();
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
H A DMailbox.java52 * which mailbox to sync. Is intentionally private, we have helper functions
66 * Sync extras key to specify that only a specific mailbox type should be synced.
70 * Sync extras key when syncing a mailbox to specify how many additional messages to sync.
83 CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI + "/mailbox");
244 * Projection to use when reading {@link MailboxColumns#ACCOUNT_KEY} for a mailbox.
270 // Ping indicates that the EAS mailbox is synced based on a "ping" from the server
284 * Selection for mailboxes that should receive push for an account. A mailbox should receive
308 /** The "main" mailbox for the account, almost always referred to as "Inbox" */
311 /** Generic mailbox that holds mail */
313 /** Parent-only mailbox; doe
[all...]
/packages/apps/Email/src/com/android/email/
H A DEmailNotificationController.java347 LogUtils.w(LOG_TAG, "Null folder cursor for mailbox %s",
367 "Null folder for mailbox %s", uiAccount.settings.defaultInbox);
394 final Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, message.mMailboxKey);
395 showNotification(mailbox.mAccountKey,
419 final Mailbox mailbox = Mailbox.restoreMailboxOfType(mContext, accountId,
421 if (mailbox == null) return;
431 showNotification(mailbox.mAccountKey,
701 LogUtils.e(LOG_TAG, "Null folder cursor for account " + accountUri + ", mailbox "
711 LogUtils.e(LOG_TAG, "Empty folder cursor for account " + accountUri + ", mailbox "
/packages/apps/Email/tests/src/com/android/email/mail/store/
H A DImapStoreUnitTests.java540 * TODO: Test the process of opening and indexing a mailbox with one unread message in it.
1328 // Add prefix to special mailbox "INBOX" [case insensitive), no affect
1455 getNextTag(true) + " nO no such mailbox"
2306 /** Creates a folder & mailbox */
2309 Mailbox mailbox = new Mailbox();
2310 mailbox.mId = id;
2311 mailbox.mDisplayName = displayName;
2312 mailbox.mServerId = serverId;
2313 mailbox.mDelimiter = delimiter;
2314 mailbox
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMapContentObserver.java519 Log.e(TAG, "New SMS mailbox types have been introduced, without an update in BT...");
533 private static String getMmsFolderName(int mailbox) { argument
534 String name = FOLDER_MMS_MAP.get(mailbox);

Completed in 323 milliseconds