Table of Contents

Interface ISpamClassificationSettingsReader

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

Answers what one mail account is classified under.

public interface ISpamClassificationSettingsReader

Remarks

Read through a port for the reason every other decision about mail is: the paths that obey it must not reach for a settings type of the host's, and the value has to be re-read rather than captured so that a configuration reload or a write against the account takes effect without a restart. Reading it does not set anything off — a change decides what the next classification runs with and never reclassifies what is already recorded.

Every answer is about one account, because junk is a judgement about one mailbox and the actions it triggers write to that mailbox's own server. The mail is one copy, so an account two people are assigned is classified once under the settings written on it rather than twice under theirs. An account this deployment does not serve is answered exactly as one with classification switched off, which is what keeps a mailbox scope that names somebody else's account from producing a verdict about its mail.

Methods

ReadScopeInForceAsync(CancellationToken)

Reads which of the deployment's mailboxes classification runs for, as one value a walk can be narrowed by.

SettingsFor(MailAccountId)

Gets the settings in force now for one account.