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

    Function encodeComment

    • Encode comment text and wrap it in parentheses according to RFC 2047.

      Parameters

      • options: FormatOptions

        Formatting options.

      • charset: string | CharsetEncoding

        Charset encoding or name.

      • text: string

        Text to encode.

      • startIndex: number = 0

        Starting character index.

      • count: number = ...

        Number of characters to encode.

      Returns string

      The encoded comment text.

      options, charset, or text is invalid.

      startIndex or count is outside text.