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

12

/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/services/Telephony/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,
/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/services/Telephony/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/Exchange/src/com/android/exchange/eas/
H A DEasFullSyncOperation.java173 // Sync the mailbox that was explicitly requested.
214 final Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, folderId);
215 if (mailbox == null) {
220 if (mailbox.mAccountKey != mAccount.mId) {
221 LogUtils.e(TAG, "Mailbox does not match account: mailbox %s, %s", mAccount.toString(),
226 if (mAuthsToSync != null && !mAuthsToSync.contains(Mailbox.getAuthority(mailbox.mType))) {
227 // We are asking for an account sync, but this mailbox type is not configured for
232 if (mailbox.mType == Mailbox.TYPE_DRAFTS) {
244 // Non-mailbox syncs are whole account syncs initiated by the AccountManager and are
246 if (mailbox
345 updateMailbox(final Mailbox mailbox, final ContentValues cv, final int syncStatus) argument
[all...]
H A DEasSyncMail.java44 final double protocolVersion, final Account account, final Mailbox mailbox,
47 // No special options to set for initial mailbox sync.
52 final ArrayList<String> messagesToFetch = addToFetchRequestList(context, mailbox);
60 // Permanently delete if in trash mailbox
63 final boolean isTrashMailbox = mailbox.mType == Mailbox.TYPE_TRASH;
81 s.data(Tags.SYNC_FILTER_TYPE, getEmailFilter(account, mailbox));
117 final Mailbox mailbox, final InputStream is) throws IOException {
118 return new EmailSyncParser(context, is, mailbox, account);
125 private ArrayList<String> addToFetchRequestList(final Context context, final Mailbox mailbox) { argument
130 new String[] {Long.toString(mailbox
43 setSyncOptions(final Context context, final Serializer s, final double protocolVersion, final Account account, final Mailbox mailbox, final boolean isInitialSync, final int numWindows) argument
116 getParser(final Context context, final Account account, final Mailbox mailbox, final InputStream is) argument
151 getEmailFilter(final Account account, final Mailbox mailbox) argument
[all...]
H A DEasPing.java161 final Mailbox mailbox = new Mailbox();
162 mailbox.restore(c);
163 s = handleOneMailbox(s, mailbox);
287 * If mailbox is eligible for push, add it to the ping request, creating the {@link Serializer}
289 * @param mailbox The mailbox to check.
294 private Serializer handleOneMailbox(Serializer s, final Mailbox mailbox) throws IOException { argument
296 if (mailbox.mSyncKey != null && !mailbox.mSyncKey.equals("0")) {
298 Mailbox.getAuthority(mailbox
[all...]
H A DEasSyncCollectionTypeBase.java33 * Write the contents of a Collection node in an EAS sync request appropriate for our mailbox.
41 * @param mailbox
47 final double protocolVersion, final Account account, final Mailbox mailbox,
54 * @param mailbox
60 final Mailbox mailbox, final InputStream is) throws IOException;
46 setSyncOptions(final Context context, final Serializer s, final double protocolVersion, final Account account, final Mailbox mailbox, final boolean isInitialSync, final int numWindows) argument
59 getParser(final Context context, final Account account, final Mailbox mailbox, final InputStream is) argument
H A DEasSyncBase.java42 public EasSyncBase(final Context context, final Account account, final Mailbox mailbox) { argument
44 mMailbox = mailbox;
48 * Get the sync key for this mailbox.
83 LogUtils.d(TAG, "Syncing account %d mailbox %d (class %s) with syncKey %s", mAccount.mId,
H A DEasSync.java57 /** Result code indicating that the mailbox for an upsync is no longer present. */
64 // State for the mailbox we're currently syncing.
143 // For some reason we can get here without a valid mailbox sync key
147 "Tried to sync mailbox %d with invalid mailbox sync key",
153 // only case in which we don't retry this mailbox.
159 // A retry here is pointless -- the message's mailbox (and
215 final Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, mMailboxId);
216 if (mailbox == null) {
220 response.getInputStream(), mailbox, mAccoun
[all...]
/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) };
/packages/apps/Exchange/src/com/android/exchange/adapter/
H A DAbstractSyncParser.java56 final InputStream in, final Mailbox mailbox, final Account account) throws IOException {
58 init(context, resolver, mailbox, account);
72 final Mailbox mailbox, final Account account) throws IOException {
74 init(context, resolver, mailbox, account);
82 private void init(final Context context, final ContentResolver resolver, final Mailbox mailbox, argument
86 mMailbox = mailbox;
55 AbstractSyncParser(final Context context, final ContentResolver resolver, final InputStream in, final Mailbox mailbox, final Account account) argument
71 AbstractSyncParser(final Parser p, final Context context, final ContentResolver resolver, final Mailbox mailbox, final Account account) argument
H A DSearchParser.java35 final InputStream in, final Mailbox mailbox, final Account account,
41 mMailbox = mailbox;
34 SearchParser(final Context context, final ContentResolver resolver, final InputStream in, final Mailbox mailbox, final Account account, String query) argument
/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() ]
/packages/services/Telephony/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() ]

Completed in 551 milliseconds

12