Package org.eclipse.angus.mail.imap
Class IMAPNestedMessage
java.lang.Object
jakarta.mail.Message
jakarta.mail.internet.MimeMessage
org.eclipse.angus.mail.imap.IMAPMessage
org.eclipse.angus.mail.imap.IMAPNestedMessage
- All Implemented Interfaces:
MimePart,Part,ReadableMime
This class implements a nested IMAP message
- Author:
- John Mani
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.angus.mail.imap.IMAPMessage
IMAPMessage.FetchProfileConditionNested classes/interfaces inherited from class jakarta.mail.internet.MimeMessage
MimeMessage.RecipientType -
Field Summary
Fields inherited from class org.eclipse.angus.mail.imap.IMAPMessage
bs, envelope, items, sectionIdFields inherited from class jakarta.mail.internet.MimeMessage
cachedContent, content, contentStream, dh, flags, headers, modified, savedFields inherited from interface jakarta.mail.Part
ATTACHMENT, INLINE -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected intprotected ObjectGet the messageCacheLock, associated with this Message's Folder.protected IMAPProtocolGet this message's folder's protocol connection.protected intGet this message's IMAP sequence number.intgetSize()Get the message size.protected booleanbooleanprotected booleanisREV1()voidSet/Unset the given flags in this message.Methods inherited from class org.eclipse.angus.mail.imap.IMAPMessage
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, writeToMethods inherited from class jakarta.mail.internet.MimeMessage
addRecipients, createInternetHeaders, createMimeMessage, getAllRecipients, getContent, getInputStream, getRawInputStream, isMimeType, parse, reply, reply, saveChanges, setContent, setContent, setDescription, setFrom, setFrom, setRecipients, setSubject, setText, setText, setText, updateHeaders, updateMessageID, writeToMethods inherited from class jakarta.mail.Message
addRecipient, getFolder, getMessageNumber, getSession, match, setFlag, setRecipient
-
Method Details
-
getProtocol
Description copied from class:IMAPMessageGet this message's folder's protocol connection. Throws FolderClosedException, if the protocol connection is not available. ASSERT: Must hold the messageCacheLock.- Overrides:
getProtocolin classIMAPMessage- Returns:
- the IMAPProtocol object for the containing folder
- Throws:
ProtocolException- for protocol errorsFolderClosedException- if the folder is closed
-
isREV1
- Overrides:
isREV1in classIMAPMessage- Throws:
FolderClosedException
-
getMessageCacheLock
Description copied from class:IMAPMessageGet the messageCacheLock, associated with this Message's Folder.- Overrides:
getMessageCacheLockin classIMAPMessage- Returns:
- the message cache lock object
-
getSequenceNumber
protected int getSequenceNumber()Description copied from class:IMAPMessageGet this message's IMAP sequence number. ASSERT: This method must be called only when holding the messageCacheLock.- Overrides:
getSequenceNumberin classIMAPMessage- Returns:
- the message sequence number
-
checkExpunged
- Overrides:
checkExpungedin classIMAPMessage- Throws:
MessageRemovedException
-
isExpunged
public boolean isExpunged()- Overrides:
isExpungedin classMessage
-
getFetchBlockSize
protected int getFetchBlockSize()- Overrides:
getFetchBlockSizein classIMAPMessage
-
ignoreBodyStructureSize
protected boolean ignoreBodyStructureSize()- Overrides:
ignoreBodyStructureSizein classIMAPMessage
-
getSize
Description copied from class:IMAPMessageGet the message size.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.
- Specified by:
getSizein interfacePart- Overrides:
getSizein classIMAPMessage- Throws:
MessagingException
-
setFlags
Description copied from class:IMAPMessageSet/Unset the given flags in this message.- Overrides:
setFlagsin classIMAPMessage- Throws:
MessagingException
-