Class MailDerivedTaskProposals
- Namespace
- MailFathom.Application.Tasks
- Assembly
- MailFathom.Application.dll
Offers what a message asked for to every person the mailbox it arrived in is assigned to.
public sealed class MailDerivedTaskProposals
- Inheritance
-
MailDerivedTaskProposals
- Inherited Members
Remarks
The seam between the enrichment pass and the task list, and the only producer of a Proposed task. It exists as a use case of its own rather than as a few lines inside the pass because the two answer different questions: the pass decides which messages are derived from and what one derivation costs, and this decides whose list a reading lands on and under which origin.
A proposal is never a commitment. Everything written here carries the origin that says nobody has agreed to it, so it stands on the half of the list a person accepts or dismisses from. Accepting is their act, through the route that owns it, and nothing in an unattended pass can reach the other half.
It is written per person rather than per mailbox, because a task list is one person's. A mailbox two people are assigned produces one derivation — the mail is one copy and so is everything derived from it — and each of them is offered the same thing on their own list, which each may accept or dismiss without deciding anything for the other. A mailbox assigned to nobody proposes to nobody rather than to everybody.
The message is cited and never copied. What the task keeps is the identity of the message it was read out of, so the thread can be opened from the list; no subject, no body, and no address is written beside it, and the task outlives the citation because what somebody owes does not stop being owed when the mail naming it is erased.
Constructors
- MailDerivedTaskProposals(IMailAccountAssignments, IPersonalTaskStore, TimeProvider)
Initializes the use case.
Methods
- ProposeAsync(MailAccountId, StoredEmailId, IReadOnlyList<EmailTaskProposal>, CancellationToken)
Writes one message's readings onto the list of each person assigned the mailbox it arrived in.