Constructor EmailThreadContexts
- Namespace
- MailFathom.Application.Emails.Threads
- Assembly
- MailFathom.Application.dll
EmailThreadContexts(IEmailThreadReader, MailboxScopeResolver, SensitiveContentEgressGuard)
Initializes the per-read assembly.
public EmailThreadContexts(IEmailThreadReader threadReader, MailboxScopeResolver scopeResolver, SensitiveContentEgressGuard egressGuard)
Parameters
threadReaderIEmailThreadReaderReads the messages one conversation holds.
scopeResolverMailboxScopeResolverNames the accounts and folders a tool may read, which every read here runs under.
egressGuardSensitiveContentEgressGuardScans the subjects before any of them becomes a caller's.
Remarks
The scope is resolved once, here, rather than per conversation: it is configuration rather than a caller's filter, and one read of several emails must not be able to see two answers to the same question. Junk mail is included, because a conversation is threaded across the folders it reached and a reply that landed in junk is part of the exchange the caller is reading rather than a listing they asked for.
Exceptions
- ArgumentNullException
Thrown when any argument is null.