Class MessageInfoBase

  • All Implemented Interfaces:
    Direct Known Subclasses:
    ExchangeMessageInfo, ImapMessageInfo, Pop3MessageInfo

    public abstract class MessageInfoBase
    extends Object

    The MessageInfo represents the E-Mail message info fetched from the mail server.

    • Constructor Detail

      • MessageInfoBase

        public MessageInfoBase()

        Initializes a new instance of the MessageInfoBase class.

    • Method Detail

      • getHeaders

        public final HeaderCollection getHeaders()

        Gets the Headers of the E-Mail message.

        Value: The headers.
      • getSubject

        public final String getSubject()

        Gets the Subject of the E-Mail message.

      • getMessageId

        public final String getMessageId()

        Gets the message ID.

        Value: The message id string.
      • getReplyTo

        public final MailAddressCollection getReplyTo()

        Gets the list of addresses that should receive replies to this message.

        Value: The list of addresses.
      • getFrom

        public final MailAddress getFrom()

        Gets the list of authors of this message.

        Value: The list of authors of this message.
      • getSender

        public final MailAddress getSender()

        Gets the sender of this message.

        Value: The sender of this message.
      • getListUnsubscribe

        public final String getListUnsubscribe()

        The List-Unsubscribe field describes the command (preferably using mail) to directly unsubscribe the user(removing them from the list). For more details please see

      • getSize

        public final long getSize()

        Gets the size of the E-Mail message.

        Value: The size of the E-Mail message.
      • getDate

        public Date getDate()

        The origination date specifies the date and time at which the creator of the message indicated that the message was complete and ready to enter the mail delivery system. For instance, this might be the time that a user pushes the "send" or "submit" button in an application program. In any case, it is specifically not intended to convey the time that the message is actually transported, but rather the time at which the human or other creator of the message has put the message into its final form, ready for transport. (For example, a portable computer user who is not connected to a network might queue a message for delivery. The origination date is intended to contain the date and time that the user queued the message, not the time when the user connected to the network to send the message.)

      • dispose

        public void dispose()

        Performs tasks associated with freeing, releasing, or resetting unmanaged resources.

        Specified by:
        dispose in interface
      • toString

        public String toString()

        A string that represents the current object.

        toString in class Object
        Returns a string that represents the current object.