• Home
  • Raw
  • Download

Lines Matching refs:message

454         for (Message message : unsyncedMessages) {  in loadUnsyncedMessages()
455 if (message.getSize() > (MAX_SMALL_MESSAGE_SIZE)) { in loadUnsyncedMessages()
456 largeMessages.add(message); in loadUnsyncedMessages()
458 smallMessages.add(message); in loadUnsyncedMessages()
473 public void messageRetrieved(Message message) { in loadUnsyncedMessages() argument
475 copyOneMessageToProvider(message, account, toMailbox, in loadUnsyncedMessages()
489 for (Message message : largeMessages) { in loadUnsyncedMessages()
490 if (message.getBody() == null) { in loadUnsyncedMessages()
499 remoteFolder.fetch(new Message[] { message }, fp, null); in loadUnsyncedMessages()
502 copyOneMessageToProvider(message, account, toMailbox, in loadUnsyncedMessages()
511 MimeUtility.collectParts(message, viewables, attachments); in loadUnsyncedMessages()
518 remoteFolder.fetch(new Message[] { message }, fp, null); in loadUnsyncedMessages()
521 copyOneMessageToProvider(message, account, toMailbox, in loadUnsyncedMessages()
546 public void messageRetrieved(Message message) { in downloadFlagAndEnvelope() argument
551 localMapCopy.get(message.getUid()); in downloadFlagAndEnvelope()
564 message, account.mId, mailbox.mId); in downloadFlagAndEnvelope()
568 if (!message.isSet(Flag.SEEN) && unseenMessages != null) { in downloadFlagAndEnvelope()
598 SortableMessage(Message message, long uid) { in SortableMessage() argument
599 mMessage = message; in SortableMessage()
679 public void messageRetrieved(Message message) { in searchMailboxImpl() argument
687 message, account.mId, mailbox.mId); in searchMailboxImpl()
697 if (message.getSize() > Store.FETCH_BODY_SANE_SUGGESTED_SIZE) { in searchMailboxImpl()
700 copyOneMessageToProvider(message, localMessage, flag, mContext); in searchMailboxImpl()
825 for (Message message : remoteMessages) { in synchronizeMailboxGeneric()
826 remoteUidMap.put(message.getUid(), message); in synchronizeMailboxGeneric() local
837 for (Message message : remoteMessages) { in synchronizeMailboxGeneric()
838 LocalMessageInfo localMessage = localMessageMap.get(message.getUid()); in synchronizeMailboxGeneric()
850 unsyncedMessages.add(message); in synchronizeMailboxGeneric()
960 public void copyOneMessageToProvider(Message message, Account account, in copyOneMessageToProvider() argument
974 String.valueOf(message.getUid()) in copyOneMessageToProvider()
981 copyOneMessageToProvider(message, localMessage, loadStatus, mContext); in copyOneMessageToProvider()
1000 public void copyOneMessageToProvider(Message message, EmailContent.Message localMessage, in copyOneMessageToProvider() argument
1011 LegacyConversions.updateMessageFields(localMessage, message, in copyOneMessageToProvider()
1017 MimeUtility.collectParts(message, viewables, attachments); in copyOneMessageToProvider()
1110 private Mailbox getRemoteMailboxForMessage(EmailContent.Message message) { in getRemoteMailboxForMessage() argument
1112 if (!TextUtils.isEmpty(message.mProtocolSearchInfo)) { in getRemoteMailboxForMessage()
1113 long accountKey = message.mAccountKey; in getRemoteMailboxForMessage()
1114 String protocolSearchInfo = message.mProtocolSearchInfo; in getRemoteMailboxForMessage()
1138 return Mailbox.restoreMailboxWithId(mContext, message.mMailboxKey); in getRemoteMailboxForMessage()
1526 public void onMessageUidChange(Message message, String newUid) { in processPendingDataChange()
1535 public void onMessageNotFound(Message message) { in processPendingDataChange()
1639 public void onMessageUidChange(Message message, String newUid) { in processPendingMoveToTrash()
1652 public void onMessageNotFound(Message message) { in processPendingMoveToTrash()
1719 Mailbox newMailbox, EmailContent.Message message) in processPendingAppend() argument
1732 if (message.mServerId == null || message.mServerId.length() == 0) { in processPendingAppend()
1733 message.mServerId = LOCAL_SERVERID_PREFIX + message.mId; in processPendingAppend()
1735 ContentUris.withAppendedId(EmailContent.Message.CONTENT_URI, message.mId); in processPendingAppend()
1737 cv.put(EmailContent.Message.SERVER_ID, message.mServerId); in processPendingAppend()
1754 if (message.mServerId != null && message.mServerId.length() > 0) { in processPendingAppend()
1755 remoteMessage = remoteFolder.getMessage(message.mServerId); in processPendingAppend()
1761 Message localMessage = LegacyConversions.makeMessage(mContext, message); in processPendingAppend()
1769 message.mServerId = localMessage.getUid(); in processPendingAppend()
1777 Date localDate = new Date(message.mServerTimeStamp); in processPendingAppend()
1788 Message localMessage = LegacyConversions.makeMessage(mContext, message); in processPendingAppend()
1797 message.mServerId = localMessage.getUid(); in processPendingAppend()
1807 if (updateInternalDate && message.mServerId != null) { in processPendingAppend()
1809 Message remoteMessage2 = remoteFolder.getMessage(message.mServerId); in processPendingAppend()
1814 message.mServerTimeStamp = remoteMessage2.getInternalDate().getTime(); in processPendingAppend()
1824 Uri uri = ContentUris.withAppendedId(EmailContent.Message.CONTENT_URI, message.mId); in processPendingAppend()
1830 cv.put(EmailContent.Message.SERVER_ID, message.mServerId); in processPendingAppend()
1831 cv.put(EmailContent.Message.SERVER_TIMESTAMP, message.mServerTimeStamp); in processPendingAppend()
1852 EmailContent.Message message = in loadMessageForView()
1854 if (message == null) { in loadMessageForView()
1858 if (message.mFlagLoaded == EmailContent.Message.FLAG_LOADED_COMPLETE) { in loadMessageForView()
1865 Account account = Account.restoreAccountWithId(mContext, message.mAccountKey); in loadMessageForView()
1866 Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, message.mMailboxKey); in loadMessageForView()
1877 if (!TextUtils.isEmpty(message.mProtocolSearchInfo)) { in loadMessageForView()
1878 remoteServerId = message.mProtocolSearchInfo; in loadMessageForView()
1884 Message remoteMessage = remoteFolder.getMessage(message.mServerId); in loadMessageForView()
1934 EmailContent.Message message = in loadAttachment()
1937 if (account == null || mailbox == null || message == null) { in loadAttachment()
1953 Message storeMessage = remoteFolder.createMessage(message.mServerId); in loadAttachment()