Table of Contents

Interface IEmailContentRenderer

Namespace
MailFathom.Application.EmailContent.Rendering
Assembly
MailFathom.Application.dll

Turns stored raw MIME into the headers, body, and attachment metadata a reader is shown.

public interface IEmailContentRenderer

Remarks

The port is separate from the reader that feeds the lexical index, because the two want different readings of the same bytes: the index wants text with quoted history and signature blocks removed, and a reader wants the message as it was written. Sharing one contract would force one of them to undo what the other did.

It exists at all so the MIME parser and the HTML sanitizer stay inside their adapter. Implementations reach no mail server, no network, and no file system: they are handed bytes that were already stored, and rendering them can therefore neither affect a remote \Seen flag nor fetch a remote image an HTML body points at.

Methods

RenderAsync(StoredEmailContent, EmailContentRenderingBounds, CancellationToken)

Renders one stored message.