Format OptionsEnsure New Line Property
Get or set whether the formatter should ensure that messages end with a new-line sequence.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
in order to ensure that the message will end with a new-line sequence; otherwise, .
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public bool EnsureNewLine { get; set; }Property Value
Booleanin order to ensure that the message will end with a new-line sequence; otherwise, .
Remarks
By default, when writing a MimeMessage to a stream, the serializer attempts to maintain byte-for-byte compatibility with the original stream that the message was parsed from. This means that if the ogirinal message stream did not end with a new-line sequence, then the output of writing the message back to a stream will also not end with a new-line sequence.
To override this behavior, you can set this property to in order to ensure that writing the message back to a stream will always end with a new-line sequence.
Exceptions
| InvalidOperationException | Default cannot be changed. |