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

PropertyReturnsDescription
attachedMessagesList<StandardMessage>Not implemented; always returns an empty list. Attached (forwarded) messages are not parsed out separately by this implementation.
attachmentsList<Attachment>The attachments parsed from this message, as MyAttachment instances. Empty, never null, if the message had no attachments.
bccList<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.
ccList<MailboxAddress>The carbon-copy recipients of this message, as parsed from the CC header of the raw MIME message.
contentLanguageStringThe content language of this message, as parsed from the raw MIME message.
dispositionStringThe content disposition of this message, as parsed from the raw MIME message.
encodingStringThe character encoding of this message, as parsed from the raw MIME message.
fromMailboxAddressThe sender of this message, as parsed from the From header of the raw MIME message.
headersMap<String,String>The raw MIME headers of this message, keyed by header name.
htmlStringThe HTML body of this message, if the message included an HTML part.
replyToMailboxAddressThe 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.
sizeintThe size of this message in bytes, as set while parsing the raw MIME message.
subjectStringThe subject line of this message.
textStringThe plain text body of this message, if the message included a text part.
toList<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.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.