com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class MessageInfoBase

  • All Implemented Interfaces:
    com.aspose.ms.System.IDisposable
    Direct Known Subclasses:
    ExchangeMessageInfo, ImapMessageInfo, Pop3MessageInfo


    public abstract class MessageInfoBase
    extends Object
    implements com.aspose.ms.System.IDisposable

    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.

      • 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 https://tools.ietf.org/html/rfc2369

      • getSize

        public final long getSize()

        Gets the size of the E-Mail message.

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

        public void dispose()

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

        Specified by:
        dispose in interface com.aspose.ms.System.IDisposable
      • toString

        public String toString()

        A string that represents the current object.

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