Class Mailbox


  • public class Mailbox
    extends Object
    Corresponds to the Mailbox production in RFC 5321, basically a LOCAL_PART@REMOTE_PART element.

    Note: RFC 5322 Internet Message Format also contains a mailbox production, but with different content. The addr-spec production of that RFC is the production which corresponds to this class.

    See Also:
    RFC 5321 4.1.2
    • Constructor Detail

    • Method Detail

      • getLocalPart

        public LocalPart getLocalPart()
      • getRemotePart

        public RemotePart getRemotePart()
      • getSmtpText

        public String getSmtpText()
        Returns the raw mailbox, as it was supplied in the SMTP transaction.
      • toString

        public String toString()
        Returns the displayable form of the address.
        Overrides:
        toString in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class Object