Method Create
- Namespace
- MailFathom.Application.Emails.Enrichment
- Assembly
- MailFathom.Application.dll
Create(string, DateOnly?)
Records one thing a message asked for.
public static EmailTaskProposal Create(string title, DateOnly? dueOn)
Parameters
titlestringThe line the proposed task is offered as.
dueOnDateOnly?The day it falls due on, or null where the message named none.
Returns
- EmailTaskProposal
The proposal, with the title shortened to what a task's title holds.
Remarks
It shortens rather than refusing, for the reason a mark does: the value is what a producer wrote, and discarding a proposal over a long sentence would leave the person nothing where the message did ask them for something. The bound is the one a task is stored under, so what is offered is what would be kept.
Exceptions
- ArgumentException
Thrown when
titleis blank.