Table of Contents

Method Create

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

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

Builds the settings an operator's answers describe.

public static SpamActionSettings Create(bool filesJunk, bool marksJunkRead, MailFolderReference? junkFolder = null, double? threshold = null)

Parameters

filesJunk bool

Whether junk is moved into the junk folder.

marksJunkRead bool

Whether junk is marked read.

junkFolder MailFolderReference?

The folder junk is filed into, or null to take DefaultJunkFolder.

threshold double?

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

Returns

SpamActionSettings

The settings.

Exceptions

ArgumentException

Thrown when junkFolder is the unspecified struct default.

ArgumentOutOfRangeException

Thrown when threshold is not a finite number.