public class IMAPNestedMessage extends IMAPMessage
IMAPMessage.FetchProfileCondition
MimeMessage.RecipientType
ATTACHMENT, INLINE
Modifier and Type | Method and Description |
---|---|
int |
getSize()
Get the message size.
|
boolean |
isExpunged()
Checks whether this message is expunged.
|
void |
setFlags(Flags flag,
boolean set)
Set/Unset the given flags in this message.
|
addFrom, addHeader, addHeaderLine, addRecipients, getAllHeaderLines, getAllHeaders, getContentID, getContentLanguage, getContentMD5, getContentType, getDataHandler, getDescription, getDisposition, getEncoding, getFileName, getFlags, getFrom, getHeader, getHeader, getInReplyTo, getItem, getLineCount, getMatchingHeaderLines, getMatchingHeaders, getMessageID, getMimeStream, getNonMatchingHeaderLines, getNonMatchingHeaders, getPeek, getReceivedDate, getRecipients, getReplyTo, getSender, getSentDate, getSubject, invalidateHeaders, isSet, removeHeader, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDisposition, setFileName, setFrom, setHeader, setPeek, setRecipients, setReplyTo, setSender, setSentDate, setSubject, writeTo
addRecipients, getAllRecipients, getContent, getInputStream, getRawInputStream, isMimeType, reply, reply, saveChanges, setContent, setContent, setDescription, setFrom, setFrom, setRecipients, setSubject, setText, setText, setText, writeTo
addRecipient, getFolder, getMessageNumber, getSession, match, setFlag, setRecipient
public boolean isExpunged()
Message
getMessageNumber()
are invalid on an expunged
Message object.
Messages that are expunged due to an explict expunge()
request on the containing Folder are removed from the Folder
immediately. Messages that are externally expunged by another source
are marked "expunged" and return true for the isExpunged() method,
but they are not removed from the Folder until an explicit
expunge()
is done on the Folder.
See the description of expunge()
for more details on
expunge handling.
isExpunged
in class Message
Folder.expunge()
public int getSize() throws MessagingException
IMAPMessage
Note that this returns RFC822.SIZE. That is, it's the size of the whole message, header and body included.
getSize
in interface Part
getSize
in class IMAPMessage
MessagingException
public void setFlags(Flags flag, boolean set) throws MessagingException
IMAPMessage
setFlags
in class IMAPMessage
flag
- Flags object containing the flags to be setset
- the value to be setMessagingException
IllegalWriteException
- if the underlying
implementation does not support modification
of existing values.MessageChangedEvent
Copyright © 2010 - 2019 Adobe. All Rights Reserved