Class SpamClassificationScope
- Namespace
- MailFathom.Application.Spam
- Assembly
- MailFathom.Application.dll
Which of the deployment's mailboxes classification runs for, and over which of their folders.
public sealed record SpamClassificationScope : IEquatable<SpamClassificationScope>
- Inheritance
-
SpamClassificationScope
- Implements
- Inherited Members
Remarks
The whole deployment's answer, composed from every user's own posture and read once. Classification is each user's decision about their own mail, so a walk over stored mail cannot ask one question of the deployment — it has to know which accounts belong to a user who classifies and which folders of those accounts are in that user's scope.
Both are named by account rather than by user because an account belongs to exactly one user and the tables a walk narrows already carry the account, which keeps the decision one more term of an existing predicate rather than a join onto the user.
The wait is here rather than being one user's, because how long the index may be held back by a scanner that has stopped answering is a cost the process bears: a user who could raise it would be raising it for work that is not theirs.
Fields
- DefaultMaximumClassificationWait
The wait a verdict is allowed when an operator names none.
Properties
- ClassifiedFolders
Gets the folders classification runs over, each named within the account that holds it.
- ClassifyingAccounts
Gets the accounts whose user has classification switched on, in a normalized order.
- MaximumClassificationWait
Gets how long a message may wait on a verdict before derived work runs for it unclassified.
- None
Gets the scope of a deployment no user of which classifies anything.
Methods
- Create(IEnumerable<MailAccountId>, IEnumerable<MailFolderIdentity>, TimeSpan?)
Composes the deployment's scope from the users that classify and the folders they classify over.