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

    Function tryParseMsgId

    • Try to parse a Message-Id or Content-Id token.

      Parameters

      • text: Uint8Array

        Input byte buffer.

      • cursor: ParseCursor

        Cursor advanced past the parsed msg-id.

      • endIndex: number

        Exclusive end index.

      • requireAngleAddr: boolean

        Whether the msg-id must start with <.

      Returns Result<string>

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