mimekit-ts - v1.0.0
    Preparing search index...

    Class MailboxAddress

    Represents a mailbox internet address.

    Hierarchy (View Summary)

    Index
    • Creates a new mailbox address.

      Parameters

      • name: string | null | undefined

        The display name.

      • address: string

        The mailbox address.

      • Optionalroute: Iterable<string, any, any>

        The optional route domains.

      • Optionalat: number

        The index of the @ separator in a pre-parsed address.

      Returns MailboxAddress

      address is null or invalid.

    onChanged: (() => void) | null = null

    Invoked when the address changes.

    encoding: string | CharsetEncoding = 'utf-8'

    The charset used when encoding the display name.

    route: DomainList

    The route domains for the mailbox address.

    • get isInternational(): boolean

      Whether the mailbox address contains internationalized text.

      Returns boolean

    • Gets the address-spec, optionally IDN-encoding the domain.

      Parameters

      • idnEncode: boolean

      Returns string

    • Encodes the domain portion of an address-spec using IDN when needed.

      Parameters

      • addrspec: string

      Returns string

    • Decodes the domain portion of an address-spec using IDN when needed.

      Parameters

      • addrspec: string

      Returns string