Table of Contents

Class AuthoredResponse

Namespace
MailFathom.Application.Mail.Delivery.Authoring
Assembly
MailFathom.Application.dll

Carries the answer that was authored, or the reason none was.

public sealed record AuthoredResponse : IEquatable<AuthoredResponse>
Inheritance
AuthoredResponse
Implements
Inherited Members

Remarks

What comes back is an ordinary authored message. There is no reply-shaped contract below this point and no second path into composition: the threading identifiers ride on the authored message like every other decision, so a reply, a forward, and a message answering nothing are composed by the same code and are bounded by the same numbers.

A refusal is a result rather than an exception for the reason a composition refusal is: the caller acts on it directly and nothing was written down, so the answer simply does not exist.

Properties

AccountId

Gets the account the answer is sent as, which is the account the answered email was stored from.

Email

Gets the authored message, or null when the answer was refused.

IsAuthored

Gets whether an answer was authored.

Refusal

Gets why no answer was authored, or null when one was.

Methods

Authored(MailAccountId, AuthoredEmail)

Reports the answer somebody wrote to a stored email.

Refused(RecipientResolutionRefusal)

Reports that a recipient the author added addressed nobody, in this result's own terms.

Refused(AuthoredResponseRefusalReason, long?)

Reports that no answer was authored, and why.