MessageParserConfigFixCrLf Property
Enables MailBee to replace single Lf characters with CrLf when extracting the plain-text body during parsing the message.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.2.0 build 630 for .NET 4.5
public bool FixCrLf { get; set; }

Property Value

Type: Boolean
If true, MailBee will replace single Lf (#10) with CrLf (#13#10); if false, MailBee will do not perform such replacement. The default value is false.

This is a resource-consuming operation. Enable this property only if you often get e-mails with Lf instead of CrLf and the container where you display the plain-text data does not understand Lf as a line break. For instance, the standard control does not break the line when it encounters Lf without preceeding Cr, while RichTextBox does.

If you know you need this conversion enabled, be sure to enable it BEFORE accessing any properties or methods of the downloaded message (i.e. before the message got parsed).

This property affects only plain-text body. For HTML, the exact format of line breaks is not important.

Note Note
MessageParserConfig object cannot be used on its own. To access its members, the developer should use MailMessage.Parser property.
See Also