Class Metadata

java.lang.Object
com.mailosaur.models.BaseModel
com.mailosaur.models.Metadata

public class Metadata extends BaseModel
Further metadata related to the message, including email headers.
  • Constructor Details

    • Metadata

      public Metadata()
  • Method Details

    • headers

      public List<MessageHeader> headers()
      Gets the message headers.
      Returns:
      The message headers.
    • helo

      public String helo()
      Gets the fully-qualified domain name or IP address that was provided with the Extended HELLO (EHLO) or HELLO (HELO) command. This value is generally used to identify the SMTP client.
      Returns:
      The fully-qualified domain name or IP address that was provided with the Extended HELLO (EHLO) or HELLO (HELO) command.
    • mailFrom

      public String mailFrom()
      Gets the source mailbox/email address, referred to as the 'reverse-path', provided via the MAIL command during the SMTP transaction. https://datatracker.ietf.org/doc/html/rfc5321#section-4.1.1.2
      Returns:
      The source mailbox/email address, referred to as the 'reverse-path', provided via the MAIL command during the SMTP transaction.
    • rcptTo

      public List<MessageAddress> rcptTo()
      Gets the recipient email addresses, each referred to as a 'forward-path', provided via the RCPT command during the SMTP transaction. https://datatracker.ietf.org/doc/html/rfc5321#section-4.1.1.3
      Returns:
      Gets the recipient email addresses, each referred to as a 'forward-path', provided via the RCPT command during the SMTP transaction.