Table of Contents

Enum SpamClassificationOutcome

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

How one attempt to classify an occurrence ended.

public enum SpamClassificationOutcome

Fields

AlreadyClassified = 3

The occurrence already carried a classification and this attempt was not asked to replace it.

Classified = 0

A verdict was reached and recorded.

ContentUnavailable = 5

The occurrence has no local content to read, so no header could be observed.

A message whose size exceeded the configured fetch limit is stored with its metadata and no content at all, and a message can be classified before synchronization has fetched its body. Both are this, and both become classifiable later without the message being re-fetched for classification's sake.

Disabled = 1

Classification is switched off, so nothing was read and nothing was recorded.

OccurrenceMissing = 4

Nothing is stored under that identifier, which is what an expunged message reaches.

OutsideConfiguredScope = 2

The occurrence is in a folder the configured scope does not cover.

Remarks

Every member but Classified is a reason nothing was recorded, and none of them is a failure: each is an answer whichever caller asked can act on, and repeating the attempt is safe in all of them. What a job built on this needs to distinguish is whether a retry could ever change the answer, which is why an absent occurrence and absent content are separate members.