public class SimpleMessageAttributes extends java.lang.Object implements MailMessageAttributes
Note that the message in a mailbox have the same order using either Message Sequence Numbers or UIDs.
reinitialize() must be called on deserialization to reset Logger
Reference: RFC 2060 - para 2.3| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log |
MailMessageAttributes[] |
parts |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBodyStructure(boolean includeExtensions)
Provides the Body Structure information for this message.
|
java.lang.String |
getEnvelope()
Provides the Envelope structure information for this message.
|
java.util.Date |
getInternalDate()
Provides the date and time at which the message was received.
|
java.lang.String |
getInternalDateAsString()
Returns IMAP formatted String representation of Date
|
int |
getMessageSequenceNumber()
Provides the current Message Sequence Number for this message.
|
int |
getSize()
Provides the sizeof the message in octets.
|
int |
getUID()
Provides the unique identity value for this message.
|
protected final org.slf4j.Logger log
public MailMessageAttributes[] parts
public int getMessageSequenceNumber()
public int getUID()
public java.util.Date getInternalDate()
getInternalDate in interface MailMessageAttributespublic java.lang.String getInternalDateAsString()
MailMessageAttributesgetInternalDateAsString in interface MailMessageAttributespublic int getSize()
getSize in interface MailMessageAttributespublic java.lang.String getEnvelope()
getEnvelope in interface MailMessageAttributespublic java.lang.String getBodyStructure(boolean includeExtensions)
getBodyStructure in interface MailMessageAttributes