com.sun.mail.util.ReadableMime
, javax.mail.internet.MimePart
, javax.mail.Part
public class IMAPNestedMessage extends IMAPMessage
IMAPMessage.FetchProfileCondition
bs, envelope, items, sectionId
Modifier and Type | Method | Description |
---|---|---|
protected void |
checkExpunged() |
|
protected int |
getFetchBlockSize() |
|
protected java.lang.Object |
getMessageCacheLock() |
Get the messageCacheLock, associated with this Message's
Folder.
|
protected com.sun.mail.imap.protocol.IMAPProtocol |
getProtocol() |
Get this message's folder's protocol connection.
|
protected int |
getSequenceNumber() |
Get this message's IMAP sequence number.
|
int |
getSize() |
Get the message size.
|
protected boolean |
ignoreBodyStructureSize() |
|
boolean |
isExpunged() |
|
protected boolean |
isREV1() |
|
void |
setFlags(javax.mail.Flags flag,
boolean set) |
Set/Unset the given flags in this message.
|
addFrom, addHeader, addHeaderLine, addRecipients, fetchItem, forceCheckExpunged, getAllHeaderLines, getAllHeaders, getContentID, getContentLanguage, getContentMD5, getContentStream, getContentType, getDataHandler, getDescription, getDisposition, getEncoding, getFileName, getFlags, getFrom, getHeader, getHeader, getInReplyTo, getItem, getLineCount, getMatchingHeaderLines, getMatchingHeaders, getMessageID, getMimeStream, getModSeq, getNonMatchingHeaderLines, getNonMatchingHeaders, getPeek, getReceivedDate, getRecipients, getReplyTo, getSender, getSentDate, getSizeLong, getSubject, getUID, handleExtensionFetchItems, handleFetchItem, invalidateHeaders, isSet, removeHeader, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDisposition, setExpunged, setFileName, setFrom, setHeader, setMessageNumber, setPeek, setRecipients, setReplyTo, setSender, setSentDate, setSubject, setUID, writeTo
addRecipients, createInternetHeaders, createMimeMessage, getAllRecipients, getContent, getInputStream, getRawInputStream, isMimeType, parse, reply, reply, saveChanges, setContent, setContent, setDescription, setFrom, setFrom, setRecipients, setSubject, setText, setText, setText, updateHeaders, updateMessageID, writeTo
protected com.sun.mail.imap.protocol.IMAPProtocol getProtocol() throws ProtocolException, javax.mail.FolderClosedException
IMAPMessage
getProtocol
in class IMAPMessage
ProtocolException
- for protocol errorsjavax.mail.FolderClosedException
- if the folder is closedprotected boolean isREV1() throws javax.mail.FolderClosedException
isREV1
in class IMAPMessage
javax.mail.FolderClosedException
protected java.lang.Object getMessageCacheLock()
IMAPMessage
getMessageCacheLock
in class IMAPMessage
protected int getSequenceNumber()
IMAPMessage
getSequenceNumber
in class IMAPMessage
protected void checkExpunged() throws javax.mail.MessageRemovedException
checkExpunged
in class IMAPMessage
javax.mail.MessageRemovedException
public boolean isExpunged()
isExpunged
in class javax.mail.Message
protected int getFetchBlockSize()
getFetchBlockSize
in class IMAPMessage
protected boolean ignoreBodyStructureSize()
ignoreBodyStructureSize
in class IMAPMessage
public int getSize() throws javax.mail.MessagingException
IMAPMessage
Note that this returns RFC822.SIZE. That is, it's the size of the whole message, header and body included. Note also that if the size of the message is greater than Integer.MAX_VALUE (2GB), this method returns Integer.MAX_VALUE.
getSize
in interface javax.mail.Part
getSize
in class IMAPMessage
javax.mail.MessagingException
public void setFlags(javax.mail.Flags flag, boolean set) throws javax.mail.MessagingException
IMAPMessage
setFlags
in class IMAPMessage
javax.mail.MessagingException