MsgReader

Overview

MsgReader is a high-level reader for .msg email files that validates the MAPI storage structure and reports inconsistencies via ValidationIssues. Construct it with FromFile or FromStream, inspect ValidationIssues for any detected structural problems, then pass the result to MapiMessage.FromMsgDocument or use it directly to access the parsed document tree. Implements IDisposable.

Methods

SignatureDescription
FromFile(path: string, strict: bool)Opens the .msg file at path and returns a new MsgReader.
FromStream(stream: Stream, strict: bool)Reads a .msg document from stream and returns a new MsgReader.
Dispose()Releases any file handle or stream held by this reader.

Properties

NameTypeAccessDescription
ValidationIssuesIReadOnlyList<string>ReadRead-only list of structural issues found during parsing; empty when the file is well-formed.

See Also