Method Scored
- Namespace
- MailFathom.Application.Spam.Scanning
- Assembly
- MailFathom.Application.dll
Scored(SpamAssessment, IReadOnlyList<string>, string)
Records what a scanner answered.
public static SpamScanResult Scored(SpamAssessment assessment, IReadOnlyList<string> firedRules, string corpusRevision)
Parameters
assessmentSpamAssessmentThe score and the threshold it was judged against.
firedRulesIReadOnlyList<string>The names of the rules that fired.
corpusRevisionstringThe corpus the rules came from.
Returns
- SpamScanResult
The result, holding no more than MaximumFiredRules rule names.
Exceptions
- ArgumentNullException
Thrown when
assessmentorfiredRulesis null.- ArgumentException
Thrown when
corpusRevisionis blank.