public class DraftMailMessage extends MailMessage
DraftMailMessage - The Draft mail message with special handling for getReceivedDate() and getSentDate().COLOR_LABEL_NONE, COLOR_LABEL_PREFIX, COLOR_LABEL_PREFIX_OLD, FLAG_ANSWERED, FLAG_DELETED, FLAG_DRAFT, FLAG_FLAGGED, FLAG_FORWARDED, FLAG_READ_ACK, FLAG_RECENT, FLAG_SEEN, FLAG_SPAM, FLAG_USER, PRIORITY_HIGH, PRIORITY_HIGHEST, PRIORITY_LOW, PRIORITY_LOWEST, PRIORITY_NORMAL, USER_FORWARDED, USER_READ_ACKNO_ENCLOSED_PARTS| Constructor and Description |
|---|
DraftMailMessage(MailMessage message)
Initializes a new
DraftMailMessage. |
| Modifier and Type | Method and Description |
|---|---|
void |
addBcc(javax.mail.internet.InternetAddress addr)
Adds an email address to Bcc
|
void |
addBcc(javax.mail.internet.InternetAddress[] addrs)
Adds email addresses to Bcc
|
void |
addCc(javax.mail.internet.InternetAddress addr)
Adds an email address to Cc
|
void |
addCc(javax.mail.internet.InternetAddress[] addrs)
Adds email addresses to Cc
|
void |
addFrom(javax.mail.internet.InternetAddress addr)
Adds an email address to From.
|
void |
addFrom(javax.mail.internet.InternetAddress[] addrs)
Adds email addresses to From.
|
void |
addHeader(java.lang.String name,
java.lang.String value)
Adds a header
|
void |
addHeaders(HeaderCollection headers)
Adds a header collection
|
void |
addTo(javax.mail.internet.InternetAddress addr)
Adds an email address to To.
|
void |
addTo(javax.mail.internet.InternetAddress[] addrs)
Adds email addresses to To
|
void |
addUserFlag(java.lang.String userFlag)
Adds given user flag
|
void |
addUserFlags(java.lang.String[] userFlags)
Adds given user flags
|
java.lang.Object |
clone() |
boolean |
containsAccountId() |
boolean |
containsAccountName() |
boolean |
containsAppendVCard() |
boolean |
containsBcc() |
boolean |
containsCc() |
boolean |
containsColorLabel() |
boolean |
containsContentDisposition() |
boolean |
containsContentId() |
boolean |
containsContentType() |
boolean |
containsDispositionNotification() |
boolean |
containsFileName() |
boolean |
containsFlags() |
boolean |
containsFolder() |
boolean |
containsFrom() |
boolean |
containsHasAttachment() |
boolean |
containsHeader(java.lang.String name)
Checks for a header entry for specified header
|
boolean |
containsHeaders() |
boolean |
containsMsgref() |
boolean |
containsPrevSeen() |
boolean |
containsPriority() |
boolean |
containsReceivedDate() |
boolean |
containsRecentCount() |
boolean |
containsSentDate() |
boolean |
containsSequenceId() |
boolean |
containsSize() |
boolean |
containsSubject() |
boolean |
containsThreadLevel() |
boolean |
containsTo() |
boolean |
containsUserFlags() |
boolean |
equals(java.lang.Object obj) |
int |
getAccountId()
Gets the account ID.
|
java.lang.String |
getAccountName()
Gets the account Name
|
javax.mail.internet.InternetAddress[] |
getBcc() |
javax.mail.internet.InternetAddress[] |
getCc() |
int |
getColorLabel()
Gets the color label
|
java.lang.Object |
getContent()
Returns the part's content as a Java object dependent on underlying implementation.
|
ContentDisposition |
getContentDisposition()
Gets the disposition
|
java.lang.String |
getContentId()
Gets the contentId
|
ContentType |
getContentType()
Gets the content type
|
javax.activation.DataHandler |
getDataHandler()
Returns an appropriate
DataHandler for this mail part. |
javax.mail.internet.InternetAddress |
getDispositionNotification()
Gets the dispositionNotification
|
int |
getEnclosedCount()
Gets the number of enclosed mail parts.
|
MailPart |
getEnclosedMailPart(int index)
Gets the mail part located at given index.
|
java.lang.String |
getFileName()
Gets the fileName
|
java.lang.String |
getFirstHeader(java.lang.String name)
Gets the first header for specified header name.
|
int |
getFlags()
Gets the flags
|
java.lang.String |
getFolder()
Gets the folder
|
javax.mail.internet.InternetAddress[] |
getFrom() |
java.lang.String[] |
getHeader(java.lang.String name)
Gets all the values for the specified header.
|
java.lang.String |
getHeader(java.lang.String name,
char delimiter)
Gets all the headers for this header name, returned as a single String, with headers separated by the delimiter.
|
java.lang.String |
getHeader(java.lang.String name,
java.lang.String delimiter)
Gets all the headers for this header name, returned as a single String, with headers separated by the delimiter.
|
HeaderCollection |
getHeaders()
Gets a read-only version of this part's headers
|
java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>> |
getHeadersIterator()
Gets an instance of
Iterator to iterate all headers |
int |
getHeadersSize()
Gets the number of headers
|
java.io.InputStream |
getInputStream()
Returns an input stream for this part.
|
java.lang.String |
getMailId()
Gets the implementation-specific unique ID of this mail in its mail folder.
|
MailPath |
getMailPath()
Gets the mail path.
|
java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>> |
getMatchingHeaders(java.lang.String[] matchingHeaders)
Gets an iterator for matching headers
|
java.lang.String |
getMessageId()
Gets the Message-Id value.
|
MailPath |
getMsgref()
Gets the message reference
|
java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>> |
getNonMatchingHeaders(java.lang.String[] nonMatchingHeaders)
Gets an iterator for non-matching headers
|
int |
getPriority()
Gets the priority
|
java.util.Date |
getReceivedDate()
Gets the received date which represents the internal timestamp set by mail server on arrival.
|
java.util.Date |
getReceivedDateDirect()
Gets the received date directly which represents the internal timestamp set by mail server on arrival.
|
int |
getRecentCount()
Gets the number of recent mails in associated folder.
|
java.lang.String[] |
getReferences()
Gets the References.
|
java.util.Date |
getSentDate()
Gets the sent date which corresponds to Date header
|
java.lang.String |
getSequenceId()
Gets the sequenceId
|
long |
getSize()
Gets the size
|
java.lang.String |
getSource()
Gets the mail part's source
|
byte[] |
getSourceBytes()
Gets a newly allocated byte array containing the mail part's source bytes
|
java.lang.String |
getSubject()
Gets the subject
|
int |
getThreadLevel()
Gets the threadLevel
|
javax.mail.internet.InternetAddress[] |
getTo() |
int |
getUnreadMessages()
Gets the number of unread messages
|
java.lang.String[] |
getUserFlags()
Gets the user flags
|
boolean |
hasAttachment()
Gets the hasAttachment
|
boolean |
hasEnclosedParts()
Checks if part's MIME type is
multipart/* |
int |
hashCode() |
boolean |
hasHeaders(java.lang.String... names)
Checks if this part contains all of specified headers.
|
boolean |
isAnswered() |
boolean |
isAppendVCard()
Gets the appendVCard
|
boolean |
isDeleted() |
boolean |
isDraft() |
boolean |
isFlagged() |
boolean |
isForwarded() |
boolean |
isPrevSeen()
Gets the previous \Seen state.
|
boolean |
isReadAcknowledgment() |
boolean |
isRecent() |
boolean |
isSeen() |
boolean |
isSpam() |
boolean |
isUser() |
void |
loadContent()
Ensures that the part's content is loaded, thus this part is independent of the original.
|
void |
prepareForCaching()
Prepares this mail part to be put into cache; meaning to release all kept resources
|
void |
removeAccountId()
Removes the account ID.
|
void |
removeAccountName()
Removes the account name.
|
void |
removeAppendVCard()
Removes the appendVCard
|
void |
removeBcc()
Removes the Bcc addresses
|
void |
removeCc()
Removes the Cc addresses
|
void |
removeColorLabel()
Removes the color label
|
void |
removeContentDisposition()
Removes the disposition
|
void |
removeContentId()
Removes the contentId
|
void |
removeContentType()
Removes the content type
|
void |
removeDispositionNotification()
Removes the dispositionNotification
|
void |
removeFileName()
Removes the fileName
|
void |
removeFlags()
Removes the flags
|
void |
removeFolder()
Removes the folder
|
void |
removeFrom()
Removes the From addresses.
|
void |
removeHasAttachment()
Removes the hasAttachment
|
void |
removeHeader(java.lang.String name)
Removes the header if present
|
void |
removeHeaders()
Removes the headers
|
void |
removeMsgref()
Removes the message reference
|
void |
removePrevSeen()
Removes the previous \Seen state
|
void |
removePriority()
Removes the priority
|
void |
removeReceivedDate()
Removes the received date
|
void |
removeRecentCount()
Removes the recent count.
|
void |
removeSentDate()
Removes the sent date
|
void |
removeSequenceId()
Removes the sequenceId
|
void |
removeSize()
Removes the size
|
void |
removeSubject()
Removes the subject
|
void |
removeThreadLevel()
Removes the threadLevel
|
void |
removeTo()
Removes the To addresses
|
void |
removeUserFlags()
Removes the userFlags
|
void |
setAccountId(int accountId)
Sets the account ID.
|
void |
setAccountName(java.lang.String accountName)
Sets the account Name
|
void |
setAppendVCard(boolean appendVCard)
Sets the appendVCard
|
void |
setColorLabel(int colorLabel)
Sets the color label
|
void |
setContentDisposition(ContentDisposition disposition)
Sets the disposition
|
void |
setContentDisposition(java.lang.String disposition)
Sets the disposition
|
void |
setContentId(java.lang.String contentId)
Sets the contentId
|
void |
setContentType(ContentType contentType)
Sets the content type
|
void |
setContentType(java.lang.String contentType)
Parses and sets the content type
|
void |
setDispositionNotification(javax.mail.internet.InternetAddress dispositionNotification)
Sets the dispositionNotification
|
void |
setFileName(java.lang.String fileName)
Sets the fileName
|
void |
setFlag(int flag,
boolean enable)
Sets a system flag
|
void |
setFlags(int flags)
Sets the flags
|
void |
setFolder(java.lang.String folder)
Sets the folder
|
void |
setHasAttachment(boolean hasAttachment)
Sets the hasAttachment
|
void |
setHeader(java.lang.String name,
java.lang.String value)
Sets a header
|
void |
setMailId(java.lang.String id)
Sets the implementation-specific unique mail ID of this mail in its mail folder.
|
void |
setMsgref(MailPath msgref)
Sets the message reference
|
void |
setPrevSeen(boolean prevSeen)
Sets the previous \Seen state.
|
void |
setPriority(int priority)
Sets the priority
|
void |
setReceivedDate(java.util.Date receivedDate)
Sets the received date
|
void |
setRecentCount(int recentCount)
Sets the number of recent mails in associated folder.
|
void |
setSentDate(java.util.Date sentDate)
Sets the sent date
|
void |
setSequenceId(java.lang.String sequenceId)
Sets the sequenceId
|
void |
setSize(long size)
Sets the size
|
void |
setSubject(java.lang.String subject)
Sets the subject
|
void |
setThreadLevel(int threadLevel)
Sets the threadLevel
|
void |
setUnreadMessages(int unreadMessages)
Sets the number of unread messages
|
java.lang.String |
toString() |
void |
writeTo(java.io.OutputStream out)
Writes complete part's data into given output stream
|
containsMessageId, containsReferences, getColorLabelIntValue, getColorLabelStringValue, getInReplyTo, isColorLabel, parseColorLabel, removeMessageId, removeReferences, setMessageId, setReferences, setReferencespublic DraftMailMessage(MailMessage message)
DraftMailMessage.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic ContentType getContentType()
MailPartgetContentType in class MailPartpublic boolean containsContentType()
containsContentType in class MailParttrue if content type is set; otherwise falsepublic void removeContentType()
MailPartremoveContentType in class MailPartpublic void setContentType(ContentType contentType)
MailPartsetContentType in class MailPartcontentType - the contentType to setpublic void setContentType(java.lang.String contentType)
throws com.openexchange.exception.OXException
MailPartsetContentType in class MailPartcontentType - the content type to parsecom.openexchange.exception.OXException - If content type is invalid or could not be parsedpublic ContentDisposition getContentDisposition()
MailPartgetContentDisposition in class MailPartpublic boolean containsContentDisposition()
containsContentDisposition in class MailParttrue if disposition is set; otherwise falsepublic void removeContentDisposition()
MailPartremoveContentDisposition in class MailPartpublic void setContentDisposition(java.lang.String disposition)
throws com.openexchange.exception.OXException
MailPartsetContentDisposition in class MailPartdisposition - the disposition to setcom.openexchange.exception.OXException - If content disposition is invalid or could not be parsedpublic void setContentDisposition(ContentDisposition disposition)
MailPartsetContentDisposition in class MailPartdisposition - the disposition to setpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getFileName()
MailPartgetFileName in class MailPartpublic boolean containsFileName()
containsFileName in class MailParttrue if fileName is set; otherwise falsepublic void removeFileName()
MailPartremoveFileName in class MailPartpublic void setFileName(java.lang.String fileName)
MailPartsetFileName in class MailPartfileName - the fileName to setpublic void addHeader(java.lang.String name,
java.lang.String value)
MailPartpublic void setHeader(java.lang.String name,
java.lang.String value)
MailPartpublic void addHeaders(HeaderCollection headers)
MailPartaddHeaders in class MailPartheaders - The header collectionpublic boolean containsHeaders()
containsHeaders in class MailParttrue if headers is set; otherwise falsepublic void removeHeaders()
MailPartremoveHeaders in class MailPartpublic int getHeadersSize()
MailPartgetHeadersSize in class MailPartpublic java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>> getHeadersIterator()
MailPartIterator to iterate all headersgetHeadersIterator in class MailPartIterator to iterate all headersMailPart.getHeadersSize()public boolean containsHeader(java.lang.String name)
MailPartcontainsHeader in class MailPartname - The header nametrue if a header entry exists for specified header; otherwise falsepublic java.lang.String[] getHeader(java.lang.String name)
MailPartpublic void addFrom(javax.mail.internet.InternetAddress addr)
MailMessageaddFrom in class MailMessageaddr - The addresspublic java.lang.String getFirstHeader(java.lang.String name)
MailPart
This is a convenience method that invokes MailPart.getHeader(String, String) with the latter parameter set to null.
getFirstHeader in class MailPartname - The header namenullpublic void addFrom(javax.mail.internet.InternetAddress[] addrs)
MailMessageaddFrom in class MailMessageaddrs - The addressespublic java.lang.String getHeader(java.lang.String name,
java.lang.String delimiter)
MailPartnull, only the first header is returned. Returns null if no headers with the specified name exist.public boolean containsFrom()
containsFrom in class MailMessagetrue if From is set; otherwise falsepublic void removeFrom()
MailMessageremoveFrom in class MailMessagepublic javax.mail.internet.InternetAddress[] getFrom()
getFrom in class MailMessagepublic java.lang.String getHeader(java.lang.String name,
char delimiter)
MailPart'\0', only the first header is returned. Returns null if no headers with the specified name exist.public void addTo(javax.mail.internet.InternetAddress addr)
MailMessageaddTo in class MailMessageaddr - The addresspublic HeaderCollection getHeaders()
MailPartgetHeaders in class MailPartpublic void addTo(javax.mail.internet.InternetAddress[] addrs)
MailMessageaddTo in class MailMessageaddrs - The addressespublic java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>> getNonMatchingHeaders(java.lang.String[] nonMatchingHeaders)
MailPartgetNonMatchingHeaders in class MailPartnonMatchingHeaders - The non-matching headerspublic boolean containsTo()
containsTo in class MailMessagetrue if To is set; otherwise falsepublic void removeTo()
MailMessageremoveTo in class MailMessagepublic java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>> getMatchingHeaders(java.lang.String[] matchingHeaders)
MailPartgetMatchingHeaders in class MailPartmatchingHeaders - The matching headersnull if not existspublic javax.mail.internet.InternetAddress[] getTo()
getTo in class MailMessagepublic void removeHeader(java.lang.String name)
MailPartremoveHeader in class MailPartname - The header namepublic boolean hasHeaders(java.lang.String... names)
MailParthasHeaders in class MailPartnames - The names of the headers to checktrue if this part contains all of specified headers; otherwise falsepublic void addCc(javax.mail.internet.InternetAddress addr)
MailMessageaddCc in class MailMessageaddr - The addresspublic void addCc(javax.mail.internet.InternetAddress[] addrs)
MailMessageaddCc in class MailMessageaddrs - The addressespublic long getSize()
MailPartpublic boolean containsSize()
containsSize in class MailParttrue if size is set; otherwise falsepublic void removeSize()
MailPartremoveSize in class MailPartpublic boolean containsCc()
containsCc in class MailMessagetrue if Cc is set; otherwise falsepublic void setSize(long size)
MailPartpublic void removeCc()
MailMessageremoveCc in class MailMessagepublic java.lang.String getContentId()
MailPartgetContentId in class MailPartpublic javax.mail.internet.InternetAddress[] getCc()
getCc in class MailMessagepublic boolean containsContentId()
containsContentId in class MailParttrue if contentId is set; otherwise falsepublic void removeContentId()
MailPartremoveContentId in class MailPartpublic void setContentId(java.lang.String contentId)
MailPartsetContentId in class MailPartcontentId - the contentId to setpublic void addBcc(javax.mail.internet.InternetAddress addr)
MailMessageaddBcc in class MailMessageaddr - The addresspublic java.lang.String getSequenceId()
MailPartgetSequenceId in class MailPartpublic boolean containsSequenceId()
containsSequenceId in class MailParttrue if sequenceId is set; otherwise falsepublic void addBcc(javax.mail.internet.InternetAddress[] addrs)
MailMessageaddBcc in class MailMessageaddrs - The addressespublic void removeSequenceId()
MailPartremoveSequenceId in class MailPartpublic void setSequenceId(java.lang.String sequenceId)
MailPartsetSequenceId in class MailPartsequenceId - the sequenceId to setpublic boolean containsBcc()
containsBcc in class MailMessagetrue if Bcc is set; otherwise falsepublic MailPath getMsgref()
MailPartpublic void removeBcc()
MailMessageremoveBcc in class MailMessagepublic javax.mail.internet.InternetAddress[] getBcc()
getBcc in class MailMessagepublic boolean containsMsgref()
containsMsgref in class MailParttrue if message reference is set; otherwise falsepublic int getFlags()
MailMessagegetFlags in class MailMessagepublic void removeMsgref()
MailPartremoveMsgref in class MailPartpublic boolean isAnswered()
isAnswered in class MailMessagetrue if flag \ANSWERED is set; otherwise falsepublic void setMsgref(MailPath msgref)
MailPartpublic boolean isDeleted()
isDeleted in class MailMessagetrue if flag \DELETED is set; otherwise falsepublic boolean isDraft()
isDraft in class MailMessagetrue if flag \DRAFT is set; otherwise falsepublic boolean isFlagged()
isFlagged in class MailMessagetrue if flag \FLAGGED is set; otherwise falsepublic boolean isRecent()
isRecent in class MailMessagetrue if flag \RECENT is set; otherwise falsepublic boolean hasEnclosedParts()
throws com.openexchange.exception.OXException
MailPartmultipart/*hasEnclosedParts in class MailParttrue if part holds enclosed parts; otherwise falsecom.openexchange.exception.OXException - If check failspublic boolean isSeen()
isSeen in class MailMessagetrue if flag \SEEN is set; otherwise falsepublic boolean isSpam()
isSpam in class MailMessagetrue if virtual spam flag is set; otherwise falsepublic java.lang.Object getContent()
throws com.openexchange.exception.OXException
MailPartmultipart/*getContent in class MailPartnull if not applicablecom.openexchange.exception.OXException - If content cannot be returned as a Java objectpublic boolean isForwarded()
isForwarded in class MailMessagetrue if forwarded flag is set; otherwise falsepublic boolean isReadAcknowledgment()
isReadAcknowledgment in class MailMessagetrue if read acknowledgment flag is set; otherwise falsepublic javax.activation.DataHandler getDataHandler()
throws com.openexchange.exception.OXException
MailPartDataHandler for this mail part. multipart/*getDataHandler in class MailPartDataHandler or null if not applicablecom.openexchange.exception.OXException - If an appropriate DataHandler cannot be returnedpublic boolean isUser()
isUser in class MailMessagetrue if flag \USER is set; otherwise falsepublic boolean containsFlags()
containsFlags in class MailMessagetrue if flags is set; otherwise falsepublic void removeFlags()
MailMessageremoveFlags in class MailMessagepublic java.io.InputStream getInputStream()
throws com.openexchange.exception.OXException
MailPartmultipart/*getInputStream in class MailPartnull if not applicablecom.openexchange.exception.OXException - If no input stream could be returnedpublic void setFlags(int flags)
MailMessagesetFlags in class MailMessageflags - the flags to setpublic void setFlag(int flag,
boolean enable)
throws com.openexchange.exception.OXException
MailMessagesetFlag in class MailMessageflag - The system flag to setenable - true to enable; otherwise falsecom.openexchange.exception.OXException - If an illegal flag argument is specifiedpublic int getEnclosedCount()
throws com.openexchange.exception.OXException
MailPartmultipart/*getEnclosedCount in class MailPartMailPart.NO_ENCLOSED_PARTS if not applicablecom.openexchange.exception.OXExceptionMailPart.NO_ENCLOSED_PARTSpublic MailPart getEnclosedMailPart(int index) throws com.openexchange.exception.OXException
MailPartmultipart/*getEnclosedMailPart in class MailPartindex - The index of desired mail part or null if not applicablecom.openexchange.exception.OXExceptionpublic boolean isPrevSeen()
MailMessage
This flag is used when writing the message later on. There a check is performed whether header
Disposition-Notification-To is indicated or not.
isPrevSeen in class MailMessagepublic void loadContent()
throws com.openexchange.exception.OXException
MailPartThis method is intended for mailing systems that read the contents stepwise on demand. If dealing with such a mail part with its underlying connection closed, the part's content is no more accessible. Otherwise this method may be implemented with an empty body.
Moreover the loaded content is no more discarded when MailPart.prepareForCaching() is invoked.
loadContent in class MailPartcom.openexchange.exception.OXException - If loading part's content failspublic boolean containsPrevSeen()
containsPrevSeen in class MailMessagetrue if previous \Seen state is set; otherwise falsepublic void removePrevSeen()
MailMessageremovePrevSeen in class MailMessagepublic void setPrevSeen(boolean prevSeen)
MailMessage
This flag is used when writing the message later on. There a check is performed whether header
Disposition-Notification-To is indicated or not.
setPrevSeen in class MailMessageprevSeen - the previous \Seen state to setpublic void writeTo(java.io.OutputStream out)
throws com.openexchange.exception.OXException
MailPartpublic int getThreadLevel()
MailMessagegetThreadLevel in class MailMessagepublic boolean containsThreadLevel()
containsThreadLevel in class MailMessagetrue if threadLevel is set; otherwise falsepublic void removeThreadLevel()
MailMessageremoveThreadLevel in class MailMessagepublic void setThreadLevel(int threadLevel)
MailMessagesetThreadLevel in class MailMessagethreadLevel - the threadLevel to setpublic java.lang.String getSource()
throws com.openexchange.exception.OXException
MailPartpublic java.lang.String getSubject()
MailMessagegetSubject in class MailMessagepublic byte[] getSourceBytes()
throws com.openexchange.exception.OXException
MailPartgetSourceBytes in class MailPartcom.openexchange.exception.OXException - If mail part's source cannot be returnedpublic boolean containsSubject()
containsSubject in class MailMessagetrue if subject is set; otherwise falsepublic void removeSubject()
MailMessageremoveSubject in class MailMessagepublic void prepareForCaching()
MailPartprepareForCaching in class MailPartpublic void setSubject(java.lang.String subject)
MailMessagesetSubject in class MailMessagesubject - the subject to setpublic java.util.Date getSentDate()
MailMessagegetSentDate in class MailMessagepublic boolean containsSentDate()
containsSentDate in class MailMessagetrue if sent date is set; otherwise falsepublic void removeSentDate()
MailMessageremoveSentDate in class MailMessagepublic void setSentDate(java.util.Date sentDate)
MailMessagesetSentDate in class MailMessagesentDate - the sent date to setpublic java.util.Date getReceivedDate()
MailMessagegetReceivedDate in class MailMessagepublic java.util.Date getReceivedDateDirect()
MailMessagegetReceivedDateDirect in class MailMessagepublic boolean containsReceivedDate()
containsReceivedDate in class MailMessagetrue if received date is set; otherwise falsepublic void removeReceivedDate()
MailMessageremoveReceivedDate in class MailMessagepublic void setReceivedDate(java.util.Date receivedDate)
MailMessagesetReceivedDate in class MailMessagereceivedDate - the received date to setpublic void addUserFlag(java.lang.String userFlag)
MailMessageaddUserFlag in class MailMessageuserFlag - The user flag to addpublic void addUserFlags(java.lang.String[] userFlags)
MailMessageaddUserFlags in class MailMessageuserFlags - The user flags to addpublic boolean containsUserFlags()
containsUserFlags in class MailMessagetrue if userFlags is set; otherwise falsepublic void removeUserFlags()
MailMessageremoveUserFlags in class MailMessagepublic java.lang.String[] getUserFlags()
MailMessagegetUserFlags in class MailMessagepublic int getColorLabel()
MailMessagegetColorLabel in class MailMessagepublic boolean containsColorLabel()
containsColorLabel in class MailMessagetrue if color label is set; otherwise falsepublic void removeColorLabel()
MailMessageremoveColorLabel in class MailMessagepublic void setColorLabel(int colorLabel)
MailMessagesetColorLabel in class MailMessagecolorLabel - the color label to setpublic int getPriority()
MailMessagegetPriority in class MailMessagepublic boolean containsPriority()
containsPriority in class MailMessagetrue if priority is set; otherwise falsepublic void removePriority()
MailMessageremovePriority in class MailMessagepublic void setPriority(int priority)
MailMessagesetPriority in class MailMessagepriority - the priority to setpublic javax.mail.internet.InternetAddress getDispositionNotification()
MailMessagegetDispositionNotification in class MailMessagepublic boolean containsDispositionNotification()
containsDispositionNotification in class MailMessagetrue if dispositionNotification is set; otherwise falsepublic void removeDispositionNotification()
MailMessageremoveDispositionNotification in class MailMessagepublic void setDispositionNotification(javax.mail.internet.InternetAddress dispositionNotification)
MailMessagesetDispositionNotification in class MailMessagedispositionNotification - the dispositionNotification to setpublic java.lang.String getFolder()
MailMessagegetFolder in class MailMessagepublic boolean containsFolder()
containsFolder in class MailMessagetrue if folder is set; otherwise falsepublic void removeFolder()
MailMessageremoveFolder in class MailMessagepublic void setFolder(java.lang.String folder)
MailMessagesetFolder in class MailMessagefolder - the folder to setpublic int getAccountId()
MailMessagegetAccountId in class MailMessagepublic boolean containsAccountId()
containsAccountId in class MailMessagetrue if account ID is set; otherwise falsepublic void removeAccountId()
MailMessageremoveAccountId in class MailMessagepublic void setAccountId(int accountId)
MailMessagesetAccountId in class MailMessageaccountId - The account IDpublic java.lang.String getAccountName()
MailMessagegetAccountName in class MailMessagepublic boolean containsAccountName()
containsAccountName in class MailMessagetrue if account name is set; otherwise falsepublic void removeAccountName()
MailMessageremoveAccountName in class MailMessagepublic void setAccountName(java.lang.String accountName)
MailMessagesetAccountName in class MailMessageaccountName - The account namepublic boolean hasAttachment()
MailMessagehasAttachment in class MailMessagepublic boolean containsHasAttachment()
containsHasAttachment in class MailMessagetrue if hasAttachment is set; otherwise falsepublic void removeHasAttachment()
MailMessageremoveHasAttachment in class MailMessagepublic void setHasAttachment(boolean hasAttachment)
MailMessagesetHasAttachment in class MailMessagehasAttachment - the hasAttachment to setpublic java.lang.Object clone()
clone in class MailMessagepublic boolean isAppendVCard()
MailMessageisAppendVCard in class MailMessagepublic boolean containsAppendVCard()
containsAppendVCard in class MailMessagetrue if appendVCard is set; otherwise falsepublic void removeAppendVCard()
MailMessageremoveAppendVCard in class MailMessagepublic void setAppendVCard(boolean appendVCard)
MailMessagesetAppendVCard in class MailMessageappendVCard - the appendVCard to setpublic int getRecentCount()
MailMessagegetRecentCount in class MailMessagepublic boolean containsRecentCount()
containsRecentCount in class MailMessagetrue if number of recent mails is set; otherwise falsepublic void removeRecentCount()
MailMessageremoveRecentCount in class MailMessagepublic void setRecentCount(int recentCount)
MailMessagesetRecentCount in class MailMessagerecentCount - The recent countpublic MailPath getMailPath()
MailMessagegetMailPath in class MailMessagepublic java.lang.String getMessageId()
MailMessagegetMessageId in class MailMessagenullpublic java.lang.String[] getReferences()
MailMessagegetReferences in class MailMessagenullpublic java.lang.String getMailId()
MailMessagegetMailId in class MailMessagenull if not available.public void setMailId(java.lang.String id)
MailMessagesetMailId in class MailMessageid - The mail ID or null to indicate its absencepublic int getUnreadMessages()
MailMessagegetUnreadMessages in class MailMessagepublic void setUnreadMessages(int unreadMessages)
MailMessagesetUnreadMessages in class MailMessageunreadMessages - The number of unread messages