Interface IEmailAndPersonal


public interface IEmailAndPersonal
This object represents an email and personal value IMessage returns from headers like To: Cc: Bcc: From: etc.

Values like John Doe <john.doe@company.com> will be handled as John Doe (Personal) and john.doe@company.com (EmailAddress)

  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the email address of the header value.
    Returns the personal or null if the header value doesn't contain a personal value.
  • Method Details

    • getEmailAddress

      String getEmailAddress()
      Returns the email address of the header value.

      If the original value is John Doe <john.doe@company.com> or john.doe@company.com, the returned value is john.doe@company.com

      Returns:
      the email address of the header value.
    • getPersonal

      String getPersonal()
      Returns the personal or null if the header value doesn't contain a personal value.

      If the original value is John Doe <john.doe@company.com>, the returned value is John Doe.

      If the original value is john.doe@company.com the returned value is null

      Returns:
      the personal or null if the header value doesn't contain a personal value.