A parsed representation of an incoming email captured by a mailbox mapping, holding the sender, recipients, subject, body and attachments extracted from the raw MIME message. MailboxResource builds one of these with StandardMessageFactoryImpl.toStandardMessage from an incoming MimeMessage, storing attachment content in the VFS blob and hash stores, then passes it to the app's store-mail callback for the developer to read.
Implements: StandardMessage
Properties
| Property | Returns | Description |
|---|---|---|
| attachedMessages | List<StandardMessage> | Not implemented; always returns an empty list. Attached (forwarded) messages are not parsed out separately by this implementation. |
| attachments | List<Attachment> | The attachments parsed from this message, as MyAttachment instances. Empty, never null, if the message had no attachments. |
| bcc | List<MailboxAddress> | The blind-carbon-copy recipients of this message, as parsed from the raw MIME message. May be null if the message had no BCC header. |
| cc | List<MailboxAddress> | The carbon-copy recipients of this message, as parsed from the CC header of the raw MIME message. |
| contentLanguage | String | The content language of this message, as parsed from the raw MIME message. |
| disposition | String | The content disposition of this message, as parsed from the raw MIME message. |
| encoding | String | The character encoding of this message, as parsed from the raw MIME message. |
| from | MailboxAddress | The sender of this message, as parsed from the From header of the raw MIME message. |
| headers | Map<String,String> | The raw MIME headers of this message, keyed by header name. |
| html | String | The HTML body of this message, if the message included an HTML part. |
| replyTo | MailboxAddress | The reply-to address of this message, as parsed from the Reply-To header of the raw MIME message. May be null if the header was not present. |
| size | int | The size of this message in bytes, as set while parsing the raw MIME message. |
| subject | String | The subject line of this message. |
| text | String | The plain text body of this message, if the message included a text part. |
| to | List<MailboxAddress> | The direct recipients of this message, as parsed from the To header of the raw MIME message. |
Methods
getFrom() · getAttachments() · getReplyTo() · getSubject() · getHtml() · getText() · getSize() · getDisposition() · getEncoding() · getContentLanguage() · getHeaders() · getTo() · getCc() · getBcc() · getAttachedMessages()
getFrom()
Returns: MailboxAddress
The sender of this message, as parsed from the From header of the raw MIME message.
getAttachments()
Returns: List<Attachment>
The attachments parsed from this message, as MyAttachment instances. Empty, never null, if the message had no attachments.
getReplyTo()
Returns: MailboxAddress
The reply-to address of this message, as parsed from the Reply-To header of the raw MIME message. May be null if the header was not present.
getSubject()
Returns: String
The subject line of this message.
getHtml()
Returns: String
The HTML body of this message, if the message included an HTML part.
getText()
Returns: String
The plain text body of this message, if the message included a text part.
getSize()
Returns: int
The size of this message in bytes, as set while parsing the raw MIME message.
getDisposition()
Returns: String
The content disposition of this message, as parsed from the raw MIME message.
getEncoding()
Returns: String
The character encoding of this message, as parsed from the raw MIME message.
getContentLanguage()
Returns: String
The content language of this message, as parsed from the raw MIME message.
getHeaders()
Returns: Map<String,String>
The raw MIME headers of this message, keyed by header name.
getTo()
Returns: List<MailboxAddress>
The direct recipients of this message, as parsed from the To header of the raw MIME message.
getCc()
Returns: List<MailboxAddress>
The carbon-copy recipients of this message, as parsed from the CC header of the raw MIME message.
getBcc()
Returns: List<MailboxAddress>
The blind-carbon-copy recipients of this message, as parsed from the raw MIME message. May be null if the message had no BCC header.
getAttachedMessages()
Returns: List<StandardMessage>
Not implemented; always returns an empty list. Attached (forwarded) messages are not parsed out separately by this implementation.