Class ReplyDraft
- Namespace
- MailFathom.Application.Emails.ReplyDrafts
- Assembly
- MailFathom.Application.dll
A reply somebody has not written yet: text they own, what it asserts, and who it proposes to reach.
public sealed record ReplyDraft : IEquatable<ReplyDraft>
- Inheritance
-
ReplyDraft
- Implements
- Inherited Members
Remarks
It is a local artifact and nothing else. Nothing here is sent, written to a mail server, queued, or stored: what comes back is text in the client, which its author edits, discards, or saves as a draft of their own through the routes that already do that. Every irreversible act stays where it was — behind a person confirming it.
The proposed recipients are people the conversation itself names, resolved inside this deployment from positions a producer answered with, so a draft can propose nobody the correspondence did not already carry. They are a proposal in the strict sense: a client shows every one of them and adds none on its own.
Nothing is what a drafting that could not be made answers with, and it is not a failure a client reports. A provider that was unreachable, an endpoint that answered unreadably, and a deployment that drafts nothing all leave the composer exactly as somebody found it — empty, and theirs to write in.
Fields
- MaximumBodyLength
The greatest length a drafted body carries before it is shortened to it.
- MaximumClaims
The greatest number of claims one draft carries.
- MaximumProposedRecipients
The greatest number of recipients one draft may propose.
Properties
- Body
Gets the drafted reply as plain text, which is empty where none was written.
- Claims
Gets what the draft asserts, in the order the producer wrote it, each with the messages backing it or with none.
- Nothing
Gets the answer a drafting that produced nothing gives, which leaves the composer as it was.
- ProposedRecipients
Gets the people the draft proposes to reach, each of whom the conversation itself names.
- WasWritten
Gets whether a draft was written at all.
Methods
- Written(string, IReadOnlyList<ReplyDraftClaim>, IReadOnlyList<EmailAddress>)
Records one drafted reply.