Table of Contents

Interface IEmailSpamHeaderReader

Namespace
MailFathom.Application.Spam.Signals
Assembly
MailFathom.Application.dll

Reads the spam-relevant headers out of one message's raw MIME.

public interface IEmailSpamHeaderReader

Remarks

The port exists because parsing RFC 8601 Authentication-Results and the ARC chain of RFC 8617 needs a MIME library, and no library type may cross into the application. What comes back is uninterpreted: the outcomes as the server wrote them and the provider headers as the message carried them, so the reading of what they mean happens above this line where it is unit-testable and where the two sources can be weighed against each other.

It reads content already stored locally, so it costs no IMAP round trip and cannot affect a remote \Seen flag. A message whose MIME does not parse is answered with None rather than an exception: a classification with no header facts is a real outcome, and one unreadable message must not stop a run.

Methods

ReadAsync(StoredEmailContent, CancellationToken)

Reads one message's spam-relevant headers.