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
filesJunkboolWhether junk is moved into the junk folder.
marksJunkReadboolWhether junk is marked read.
junkFolderMailFolderReference?The folder junk is filed into, or null to take DefaultJunkFolder.
thresholddouble?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
junkFolderis the unspecified struct default.- ArgumentOutOfRangeException
Thrown when
thresholdis not a finite number.