Table of Contents

Interface IClassifiableEmailReader

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

Finds the mail classification may run over, and the account and folder of each occurrence it names.

public interface IClassifiableEmailReader

Remarks

A port of its own rather than a reuse of a mailbox read, because those apply the visibility a caller is entitled to and classification is not a caller: it runs over stored mail on the operator's behalf, including over a folder no tool may read. Reading it through a listing would silently leave such a folder unclassified.

Nothing here reaches a mail server. Both members read what an earlier synchronization run already committed, which is what keeps classification — the single occurrence and the walk of a whole mailbox alike — unable to open an IMAP session and therefore unable to touch a remote \Seen flag.

Methods

FindAsync(MailAccountId, StoredEmailId, CancellationToken)

Finds one stored email of one account.

FindStoredEmailIdAsync(MailAccountId, EmailOccurrenceId, CancellationToken)

Resolves the stable remote occurrence identity into the local email it was stored as.

GetStoredEmailsAsync(MailAccountId, IReadOnlyList<MailFolderAlias>, StoredEmailId?, int, CancellationToken)

Reads one account's stored occurrences in identity order, narrowed to a set of folders.