Table of Contents

Class SpamActionSettings

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

What an operator asked to happen to mail a classification calls junk.

public sealed record SpamActionSettings : IEquatable<SpamActionSettings>
Inheritance
SpamActionSettings
Implements
Inherited Members

Remarks

Both switches are off in None, which is what a deployment that configured nothing runs with: a verdict is recorded and no mailbox is written to. They are independent of each other, so an operator can file junk without marking it read and mark it read without moving it.

Neither switch is a decision about classification itself. Turning both off leaves classification recording exactly what it recorded before, which is the property that lets an operator watch what a scanner concludes for a while before letting it touch anything.

Properties

DefaultJunkFolder

Gets the folder a filing goes to when the operator named none: whichever folder the account maps to the junk role.

FilesJunk

Gets whether junk is moved into the junk folder on the mail server.

IsAnyActionEnabled

Gets whether anything at all is acted on.

JunkFolder

Gets the folder junk is filed into, named by alias or by the role a folder plays.

MarksJunkRead

Gets whether junk has its remote \Seen flag set.

None

Gets the settings a deployment that asked for no action runs with.

Threshold

Gets the score a scanner has to reach before mail is touched, or null to act on every spam verdict.

Methods

Create(bool, bool, MailFolderReference?, double?)

Builds the settings an operator's answers describe.