Table of Contents

Class MailReplyDrafting

Namespace
MailFathom.Application.Emails.ReplyDrafts
Assembly
MailFathom.Application.dll

Drafts what somebody is about to write, out of the conversation they are answering and the way they write.

public sealed class MailReplyDrafting
Inheritance
MailReplyDrafting
Inherited Members

Remarks

It produces a local artifact and takes no act. Nothing here sends, queues, or writes to a mail server, and nothing is stored: the reply comes back as text the person owns, and saving it as a draft or sending it stays where those acts already are, behind somebody confirming them.

A request naming no message is the same act over an empty composer, and it is answered here rather than by a second use case: the permission, the ledger, the egress guard, and the bounds are all the same decisions, and splitting it would leave two places for a deployment to be turned on. What differs is only that nothing is read — no conversation, no participants, no sent mail — so the instruction its author typed is the whole of the request and is required, and the language is the acting user's own — a message answering nothing has no correspondence to read a language out of, and no mailbox is involved on either branch.

The correspondence is read under the same scope the conversation screen reads it under — every account this user holds, no folder narrowing, junk included — because a reply is answered across the exchange rather than inside a folder. A message the scope does not admit is a message this use case has none of, so the drafting answers exactly as it does for a message nobody holds.

The style is the account's own sent mail and nothing else, and the read that fetches it is the read that resolved the answered message, which is what keeps one person's manner out of another account's reply. An operator who turned that derivation off leaves the bound at zero: no sent mail is read, and the draft is written from the conversation alone.

Both halves of the privacy posture are here rather than in the writer. What goes out to a provider is guarded by the writer at the prompt; what comes back is guarded here before it reaches a client, because a draft is written out of somebody's correspondence and carries whatever that correspondence carried.

Constructors

MailReplyDrafting(IReplyDraftSourceReader, IReplyDraftWriter, MailboxScopeResolver, SensitiveContentEgressGuard, AccessAuthorization, IUserLanguages, bool)

Initializes the drafting.

Fields

MaximumCharactersPerMessage

How much of one of those messages travels with the drafting.

MaximumMessages

How many of the conversation's most recent messages one drafting is grounded in.

MaximumStyleCharactersPerMessage

How much of one sent message travels for that derivation.

MaximumStyleMessages

How many of the person's own recent sent messages a style is derived from.

Methods

DraftAsync(ReplyDraftRequest, CancellationToken)

Drafts a reply to one of the acting user's messages.