Interface Message

All Superinterfaces:
Body, Disposable, Entity
All Known Implementing Classes:
AbstractMessage, MessageImpl

public interface Message extends Entity, Body
An MIME message (as defined in RFC 2045).
  • Method Details

    • getMessageId

      String getMessageId()
      Returns the value of the Message-ID header field of this message or null if it is not present.
      Returns:
      the identifier of this message.
    • getSubject

      String getSubject()
      Returns the (decoded) value of the Subject header field of this message or null if it is not present.
      Returns:
      the subject of this message.
    • getDate

      Date getDate()
      Returns the value of the Date header field of this message as Date object or null if it is not present.
      Returns:
      the date of this message.
    • getSender

      Mailbox getSender()
      Returns the value of the Sender header field of this message as Mailbox object or null if it is not present.
      Returns:
      the sender of this message.
    • getFrom

      MailboxList getFrom()
      Returns the value of the From header field of this message as MailboxList object or null if it is not present.
      Returns:
      value of the from field of this message.
    • getTo

      AddressList getTo()
      Returns the value of the To header field of this message as AddressList object or null if it is not present.
      Returns:
      value of the to field of this message.
    • getCc

      AddressList getCc()
      Returns the value of the Cc header field of this message as AddressList object or null if it is not present.
      Returns:
      value of the cc field of this message.
    • getBcc

      AddressList getBcc()
      Returns the value of the Bcc header field of this message as AddressList object or null if it is not present.
      Returns:
      value of the bcc field of this message.
    • getReplyTo

      AddressList getReplyTo()
      Returns the value of the Reply-To header field of this message as AddressList object or null if it is not present.
      Returns:
      value of the reply to field of this message.