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

12

/packages/apps/Email/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/src/com/android/email/mail/
H A DStore.java180 * Updates the fields within the given mailbox. Only the fields that are important to
183 protected static void updateMailbox(Mailbox mailbox, long accountId, String mailboxPath, argument
185 mailbox.mAccountKey = accountId;
186 mailbox.mDelimiter = delimiter;
192 mailbox.mDisplayName = displayPath;
194 mailbox.mFlags = Mailbox.FLAG_HOLDS_MAIL | Mailbox.FLAG_ACCEPTS_MOVED_MAIL;
196 mailbox.mFlagVisible = true;
197 //mailbox.mParentKey;
198 //mailbox.mParentServerId;
199 mailbox
[all...]
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/
H A DFolderSyncParser.java74 // Chunk size for our mailbox commits
141 // only the account mailbox
174 // Save away any mailbox sync information that is NOT default
226 // Find the mailbox in this account with the given serverId
277 * For every mailbox in this account that has a non-default interval or lookback, save those
300 * For every set of saved mailbox sync options, try to find and restore those values
351 Mailbox mailbox = new Mailbox();
352 mailbox.mDisplayName = name;
353 mailbox.mServerId = serverId;
354 mailbox
422 isValidMailFolder(Mailbox mailbox, HashMap<String, Mailbox> mailboxMap) argument
[all...]
/packages/apps/Email/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/exchange2/tests/src/com/android/exchange/adapter/
H A DSyncAdapterTestCase.java80 Mailbox mailbox = new Mailbox();
81 mailbox.mId = -1;
82 return getTestService(mAccount, mailbox);
85 EasSyncService getTestService(Account account, Mailbox mailbox) { argument
88 service.mMailbox = mailbox;
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/
H A DSyncAdapterTestCase.java80 Mailbox mailbox = new Mailbox();
81 mailbox.mId = -1;
82 return getTestService(mAccount, mailbox);
85 EasSyncService getTestService(Account account, Mailbox mailbox) { argument
88 service.mMailbox = mailbox;
/packages/apps/Email/src/com/android/email/activity/
H A DMessagesAdapter.java109 /** Whether the mailbox is found. */
111 /** {@link Account} that owns the mailbox. Null for combined mailboxes. */
113 /** {@link Mailbox} for the loaded mailbox. Null for combined mailboxes. */
117 /** {@code true} if the loaded mailbox can be refreshed. */
123 boolean found, Account account, Mailbox mailbox, boolean isEasAccount,
128 mMailbox = mailbox;
316 Mailbox mailbox = null;
321 // Magic mailbox.
324 mailbox = Mailbox.restoreMailboxWithId(mContext, mMailboxId);
325 if (mailbox !
122 MessagesCursor(Cursor cursor, boolean found, Account account, Mailbox mailbox, boolean isEasAccount, boolean isRefreshable, int countTotalAccounts) argument
347 wrapCursor(Cursor cursor, boolean found, Account account, Mailbox mailbox, boolean isEasAccount, boolean isRefreshable, int countTotalAccounts) argument
358 SearchResultsCursor(Cursor cursor, boolean found, Account account, Mailbox mailbox, boolean isEasAccount, boolean isRefreshable, int countTotalAccounts, Mailbox searchedMailbox, int resultsCount) argument
422 wrapCursor(Cursor cursor, boolean found, Account account, Mailbox mailbox, boolean isEasAccount, boolean isRefreshable, int countTotalAccounts) argument
[all...]
H A DUIControllerBase.java568 * Returns the id of the parent mailbox used for the mailbox list fragment.
579 * Returns the id of the mailbox used for the message list fragment.
674 * Determines the mailbox to search, if a search was to be initiated now.
675 * This will return {@code null} if the UI is not focused on any particular mailbox to search
684 // If already in a search, future searches will search the original mailbox.
694 * initiates a search on the given mailbox.
696 private static boolean shouldDoGlobalSearch(Account account, Mailbox mailbox) { argument
698 && (mailbox.mType == Mailbox.TYPE_INBOX);
709 Mailbox mailbox
[all...]
H A DRecentMailboxManager.java72 /** Mailbox types for default "recent mailbox" entries if none exist */
95 /** Updates the specified mailbox's touch time. Returns an async task for test only. */
129 /** Updates the last touched time for the mailbox in the background */
161 long mailbox = Controller.getInstance(mContext).findOrCreateMailboxOfType(
163 touchMailboxSynchronous(accountId, mailbox, time);
H A DMailboxFragmentAdapter.java55 * Mailbox cursor adapter for the mailbox list fragment.
57 * A mailbox cursor may contain one of several different types of data. Currently, this
59 * 1. The standard inbox, mailbox view
60 * 2. The combined mailbox view
73 /** Callback for setting background of mailbox list items during a drag */
92 // The following types are used when drilling into a mailbox
93 /** The current mailbox */
105 * Projection for a typical mailbox or account row.
108 * this column, we define a "mailbox_id" column that contains the real mailbox ID; which
117 * Projection used to retrieve immediate children for a mailbox
[all...]
H A DMessageViewFragment.java78 /** Whether or not the message can be moved from the mailbox it's in. */
110 * Called right before the current message will be deleted or moved to another mailbox.
294 protected void onMessageShown(long messageId, Mailbox mailbox) { argument
295 super.onMessageShown(messageId, mailbox);
299 && mailbox.canHaveMessagesMoved();
309 enableReplyForwardButtons(Mailbox.isMailboxTypeReplyAndForwardable(mailbox.mType));
/packages/apps/Email/src/com/android/email/
H A DMessagingController.java74 * that require remote mailbox access. This class is used to serialize and
141 * Simple cache for last search result mailbox by account and serverId, since the most common
142 * case will be repeated use of the same mailbox
256 // TODO For now, mailbox addition occurs in the server-dependent store implementation,
257 // but, mailbox removal occurs here. Instead, each store should be responsible for
280 // Step 3: Remove any local mailbox not on the remote list
283 // Short circuit if we have a remote mailbox with the same name
300 // Drop all attachment files related to this mailbox
303 // Delete the mailbox; database triggers take care of related
420 // Note: mailbox ke
528 downloadFlagAndEnvelope(final Account account, final Mailbox mailbox, Folder remoteFolder, ArrayList<Message> unsyncedMessages, HashMap<String, LocalMessageInfo> localMessageMap, final ArrayList<Long> unseenMessages) argument
729 synchronizeMailboxGeneric(final Account account, final Mailbox mailbox) argument
1416 processUploadMessage(ContentResolver resolver, Store remoteStore, Account account, Mailbox mailbox, long messageId) argument
1460 processPendingDataChange(Store remoteStore, Mailbox mailbox, boolean changeRead, boolean changeFlagged, boolean changeMailbox, boolean changeAnswered, EmailContent.Message oldMessage, final EmailContent.Message newMessage) argument
[all...]
H A DFolderProperties.java109 * Return the display name for a mailbox for UI. For normal mailboxes, it just returns
114 * @param mailboxId ID of a mailbox.
115 * @param originalDisplayName Display name of the mailbox stored in the database.
126 * Same as {@link #getDisplayName(int, long, String)}, but gets information form a mailbox
140 public String getDisplayName(Mailbox mailbox) { argument
141 return getDisplayName(mailbox.mType, mailbox.mId, mailbox.mDisplayName);
145 * Return the message count which should be shown with a mailbox name. Depending on
146 * the mailbox typ
[all...]
H A DController.java207 * Delete all Messages that live in the attachment mailbox
210 // Note: There should only be one attachment mailbox at present
232 * Get a mailbox based on a sqlite WHERE clause
250 * Returns the attachment mailbox (where we store eml attachment Emails), creating one
252 * @return the global attachment mailbox
270 * Returns the search mailbox for the specified account, creating one if necessary
271 * @return the search mailbox for the passed in account
291 * Create a Message from the Uri and store it in the attachment mailbox
296 Mailbox mailbox = getAttachmentMailbox();
297 if (mailbox
[all...]
/packages/apps/Email/src/com/android/email/widget/
H A DEmailWidgetLoader.java85 * Gets the count to be shown on the widget header. If the currently viewed mailbox ID is
96 /** Gets the display name of the mailbox */
145 Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, mMailboxId);
146 if (mailbox != null) {
147 mailboxName = mailbox.mDisplayName; // regular mailbox
169 * @param mailboxId The mailbox to load; may either be a real mailbox or the pseudo mailbox
181 /** Sets the loader's selection and arguments depending upon the account and mailbox */
[all...]
/packages/apps/Email/src/com/android/email/activity/setup/
H A DMailboxSettings.java52 * It's used to update per-mailbox sync settings. It normally updates Mailbox settings, unless
53 * the target mailbox is Inbox, in which case it updates Account settings instead.
62 private static final String BUNDLE_MAILBOX = "MailboxSettings.mailbox";
79 * Starts the activity for a mailbox.
175 finish(); // Account or mailbox removed.
226 // Update the title with the mailbox name.
338 Log.i(Logging.LOG_TAG, "Saving mailbox settings...");
345 final Mailbox mailbox = mMailbox;
354 if (mailbox.mType == Mailbox.TYPE_INBOX) {
359 cv.put(MailboxColumns.SYNC_INTERVAL, mailbox
[all...]
/packages/apps/Email/src/com/android/email/mail/store/
H A DImapStore.java319 * Creates a mailbox hierarchy out of the flat data provided by the server.
326 final Mailbox mailbox = folder.mMailbox;
327 int delimiterIdx = mailbox.mServerId.lastIndexOf(mailbox.mDelimiter);
339 mailbox.mParentKey = parentKey;
345 * exist in the local database, a new row will immediately be created in the mailbox table.
348 * @param accountId The ID of the account the mailbox is to be associated with
349 * @param mailboxPath The path of the mailbox to add
351 * @param selectable If {@code true}, the mailbox can be selected and used to store messages.
356 Mailbox mailbox
[all...]
H A DImapFolder.java75 /** The local mailbox associated with this remote folder */
1058 final Mailbox mailbox = mMailbox;
1059 if (!mailbox.isSaved()) {
1060 mailbox.save(context);
1061 mHash = mailbox.getHashes();
1063 Object[] hash = mailbox.getHashes();
1065 mailbox.update(context, mailbox.toContentValues());
1094 throw new MessagingException("Can't open mailbox: "
H A DPop3Store.java59 /** The name of the only mailbox available to POP3 accounts */
163 Mailbox mailbox = Mailbox.getMailboxForPath(mContext, mAccount.mId, POP3_MAILBOX_NAME);
164 updateMailbox(mailbox, mAccount.mId, POP3_MAILBOX_NAME, '\0', true, Mailbox.TYPE_INBOX);
165 // Force the parent key to be "no mailbox" for the mail POP3 mailbox
166 mailbox.mParentKey = Mailbox.NO_MAILBOX;
167 if (mailbox.isSaved()) {
168 mailbox.update(mContext, mailbox.toContentValues());
170 mailbox
[all...]
/packages/apps/Email/tests/src/com/android/email/activity/
H A DRecentMailboxManagerTest.java37 * Tests for the recent mailbox manager.
93 for (Mailbox mailbox : mMailboxArray) {
95 Mailbox untouchedMailbox = Mailbox.restoreMailboxWithId(mMockContext, mailbox.mId);
96 if (!defaultRecents.contains(mailbox.mType)) {
100 // Touch the mailbox
101 mManager.touch(1L, mailbox.mId).get();
104 Mailbox touchedMailbox = Mailbox.restoreMailboxWithId(mMockContext, mailbox.mId);
111 for (Mailbox mailbox : mMailboxArray) {
113 Mailbox touchedMailbox = Mailbox.restoreMailboxWithId(mMockContext, mailbox.mId);
237 // The search mailbox shoul
[all...]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
H A DMailbox.java37 public static final Uri CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI + "/mailbox");
140 // Ping indicates that the EAS mailbox is synced based on a "ping" from the server
164 /** The "main" mailbox for the account, almost always referred to as "Inbox" */
167 /** Generic mailbox that holds mail */
169 /** Parent-only mailbox; does not hold any mail */
171 /** Drafts mailbox */
173 /** Local mailbox associated with the account's outgoing mail */
195 // A mailbox that holds Messages that are attachments
206 /** Has children in the mailbox hierarchy */
221 // Magic mailbox I
[all...]
/packages/apps/Exchange/exchange2/src/com/android/exchange/
H A DExchangeService.java111 // The ExchangeService's mailbox "id"
191 // Keeps track of running services (by mailbox id)
194 // Keeps track of services whose last sync ended with an error (by mailbox id)
197 // Keeps track of which services require a wake lock (by mailbox id)
199 // Keeps track of PendingIntents for mailbox alarms (by mailbox id)
449 // If the mailbox is no longer around, remove the entry in the map
516 // Make sure the account mailbox is held due to security
629 Mailbox mailbox =
631 if (mailbox !
[all...]
H A DEasOutboxService.java293 // Then, we need the serverId of the mailbox
345 // The reference message and mailbox are called item and collection in EAS
536 Mailbox mailbox = Mailbox.restoreMailboxOfType(context, accountId, Mailbox.TYPE_OUTBOX);
537 if (mailbox != null) {
538 msg.mMailboxKey = mailbox.mId;
/packages/apps/Email/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/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DUtility.java894 * Updates the last seen message key in the mailbox data base for the INBOX of the currently
918 Mailbox mailbox = Mailbox.restoreMailboxWithId(context, mailboxId);
919 // mailbox has been removed
920 if (mailbox == null) {
923 // We use the highest _id for the account the mailbox table as the "last seen
933 long lastNotifiedMessageId = mailbox.mLastNotifiedMessageKey;
939 ContentValues values = mailbox.toContentValues();
945 new String[] { Long.toString(mailbox.mId) });
1155 * Updates the last seen message key in the mailbox data base for the INBOX of the currently
1178 Mailbox mailbox
[all...]

Completed in 237 milliseconds

12