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

    Function tryParseMessageId

    • Parse a Message-Id or Content-Id header value.

      Returns the addr-spec portion of the msg-id token.

      Parameters

      • input: string | Uint8Array<ArrayBufferLike> | null | undefined

        Text or bytes to parse.

      • startIndex: number = 0

        Index into the buffer to start parsing.

      • Optionallength: number

        Number of bytes or characters to parse.

      Returns Result<string | null>

      a Result; successful null means no msg-id token was found.

      input is null or undefined.

      startIndex or length is outside the input.