Table of Contents

Interface IEmailMimeReader

Namespace
MailFathom.Application.Emails.Extraction
Assembly
MailFathom.Application.dll

Turns raw RFC 822 content into the normalized metadata the local read side needs.

public interface IEmailMimeReader

Remarks

The port exists so the MIME library stays inside its adapter: participants, thread identifiers, and the attachment summary cross into the application as domain values, and nothing above this interface handles a parser type.

Implementations read content that was already fetched, so extraction costs no IMAP round trip and cannot affect a remote \Seen flag. They must never materialize attachment content: per-attachment size is measured by streaming the part and discarding what it holds.

Methods

ReadMetadataAsync(RemoteEmailContent, CancellationToken)

Reads one message's normalized metadata.