MimeUtils Class

MIME utility methods.

Definition

Namespace: MimeKit.Utils
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public static class MimeUtils
Inheritance
Object    MimeUtils

Remarks

Various utility methods that don't belong anywhere else.

Methods

AppendQuoted Quote the specified text and append it into the string builder.
EnumerateReferences(String) Enumerate the Message-Id references such as those that can be found in the In-Reply-To or References headers.
EnumerateReferences(Byte, Int32, Int32) Enumerate the Message-Id references such as those that can be found in the In-Reply-To or References headers.
GenerateMessageId Generate a Message-Id or Content-Id.
GenerateMessageId(String) Generate a Message-Id or Content-Id.
ParseMessageId(String) Parse a Message-Id or Content-Id header value.
ParseMessageId(Byte, Int32, Int32) Parse a Message-Id or Content-Id header value.
Quote(ReadOnlySpanChar) Quote the specified text.
Quote(String) Quote the specified text.
TryParse(String, ContentEncoding) Try to parse the value of a Content-Transfer-Encoding header.
TryParse(String, Version) Try to parse a version from a header such as Mime-Version.
TryParse(Byte, Int32, Int32, Version) Try to parse a version from a header such as Mime-Version.
Unquote Unquote the specified text.

Fields

OrdinalIgnoreCase A string comparer that performs a case-insensitive ordinal string comparison.

See Also