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

    Class Received

    Represents a Received header value.

    Index
    • Creates a new empty Received header value.

      Returns Received

    • Creates a new Received header value from common relay information.

      Parameters

      • from: string

        The source host name.

      • fromTcpInfo: string

        The source host TCP information.

      • by: string

        The receiving host name.

      • byTcpInfo: string

        The receiving host TCP information.

      • dateTime: DateTimeOffset

        The date and time the message was received.

      Returns Received

    clauses: ReceivedClause[] = []

    The received clauses.

    • get from(): string | null

      The source host name, if available.

      Returns string | null

    • set from(value: string | null): void

      Parameters

      • value: string | null

      Returns void

    • get From(): string | null

      The source host name, if available.

      Returns string | null

    • set From(value: string | null): void

      Parameters

      • value: string | null

      Returns void

    • get fromTcpInfo(): string | null

      The TCP connection information for the source host, if available.

      Returns string | null

    • set fromTcpInfo(value: string | null): void

      Parameters

      • value: string | null

      Returns void

    • get FromTcpInfo(): string | null

      The TCP connection information for the source host, if available.

      Returns string | null

    • set FromTcpInfo(value: string | null): void

      Parameters

      • value: string | null

      Returns void

    • get by(): string | null

      The receiving host name, if available.

      Returns string | null

    • set by(value: string | null): void

      Parameters

      • value: string | null

      Returns void

    • get By(): string | null

      The receiving host name, if available.

      Returns string | null

    • set By(value: string | null): void

      Parameters

      • value: string | null

      Returns void

    • get byTcpInfo(): string | null

      The TCP connection information for the receiving host, if available.

      Returns string | null

    • set byTcpInfo(value: string | null): void

      Parameters

      • value: string | null

      Returns void

    • get ByTcpInfo(): string | null

      The TCP connection information for the receiving host, if available.

      Returns string | null

    • set ByTcpInfo(value: string | null): void

      Parameters

      • value: string | null

      Returns void

    • get via(): string | null

      The physical link identifier, if available.

      Returns string | null

    • set via(value: string | null): void

      Parameters

      • value: string | null

      Returns void

    • get Via(): string | null

      The physical link identifier, if available.

      Returns string | null

    • set Via(value: string | null): void

      Parameters

      • value: string | null

      Returns void

    • get with(): string | null

      The protocol identifier, if available.

      Returns string | null

    • set with(value: string | null): void

      Parameters

      • value: string | null

      Returns void

    • get With(): string | null

      The protocol identifier, if available.

      Returns string | null

    • set With(value: string | null): void

      Parameters

      • value: string | null

      Returns void

    • get id(): string | null

      The message identifier, if available.

      Returns string | null

    • set id(value: string | null): void

      Parameters

      • value: string | null

      Returns void

    • get Id(): string | null

      The message identifier, if available.

      Returns string | null

    • set Id(value: string | null): void

      Parameters

      • value: string | null

      Returns void

    • get for(): string | null

      The recipient address, if available.

      Returns string | null

    • set for(value: string | null): void

      Parameters

      • value: string | null

      Returns void

    • get For(): string | null

      The recipient address, if available.

      Returns string | null

    • set For(value: string | null): void

      Parameters

      • value: string | null

      Returns void

    • Serializes this Received header value.

      Parameters

      • options: FormatOptions = FormatOptions.default

        The formatting options.

      Returns string

      The serialized string.

    • Parses a Received header value.

      Parameters

      • buffer: Uint8Array
      • startIndex: number = 0
      • length: number = ...

      Returns Result<Received>

      A Result; { ok: false } with a MimeError on malformed input.

    • Attempts to parse a Received header value.

      Parameters

      • buffer: Uint8Array<ArrayBufferLike> | null | undefined
      • startIndex: number = 0
      • length: number = ...

      Returns Result<Received>

      A Result; { ok: false } with a MimeError on malformed input or invalid arguments.