Class ParseResult
- Namespace
- Wolfgang.Extensions.Mail
- Assembly
- Wolfgang.Extensions.Mail.dll
The result of a diagnostic parse: the parsed MailMessage together with the list of malformed constructs the lenient parser skipped.
public sealed class ParseResult
- Inheritance
-
ParseResult
- Inherited Members
Remarks
Returned by ParseWithDiagnostics(string, EmlParserOptions?). Each entry in Issues is a ValidationIssue describing something the parser could not read (a malformed address, an undecodable body part, a malformed encoded word).
Properties
HasIssues
true when the parser skipped at least one malformed construct.
public bool HasIssues { get; }
Property Value
Issues
The malformed constructs the parser skipped, in the order they were encountered. Empty when the content parsed cleanly.
public IReadOnlyList<ValidationIssue> Issues { get; }
Property Value
Message
The parsed message. Populated on a best-effort basis: constructs that could not be read are reported in Issues and omitted from the message.
public MailMessage Message { get; }