NewLineFormat Enumeration

A New-Line format.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public enum NewLineFormat

Remarks

There are two commonly used line-endings used by modern Operating Systems. Unix-based systems such as Linux and macOS use a single character ('\n' aka LF) to represent the end of line where-as Windows (or DOS) uses a sequence of two characters ("\r\n" aka CRLF). Most text-based network protocols such as SMTP, POP3, and IMAP use the CRLF sequence as well.

Members

Unix 0 The Unix New-Line format ("\n").
Dos 1 The DOS New-Line format ("\r\n").
Mixed 2 A mixed New-Line format where some lines use Unix-based line endings and other lines use DOS-based line endings.

See Also

Reference