Interface IAuthoredMailboxTargetReader
- Namespace
- MailFathom.Application.Mail.Mutations.Authoring
- Assembly
- MailFathom.Application.dll
Answers where one stored email currently is, in the identities an IMAP command is issued against.
public interface IAuthoredMailboxTargetReader
Remarks
Every other requester of a mutation already holds this: a rule and a classification both act inside a run that met the occurrence, so neither has to look it up. A caller naming an email by its local identifier holds none of it, and this is the whole of what it needs — the occurrence the command is issued against, and the folder binding whose remote path a write session selects.
It is read from the local mailbox copy and reaches no mail server, which is what keeps a protocol request from resolving an alias over the network before it has been decided whether the caller may write at all. A row whose folder binding has since been repointed answers under the binding the row carries, so the command is issued against the occurrence the copy actually describes rather than against a folder the email may no longer be in.
Methods
- FindAsync(StoredEmailId, CancellationToken)
Finds where one stored email is, or reports that this deployment holds no such row.