Table of Contents

Class GetEmailContentRequest

Namespace
MailFathom.Application.Emails.GetEmailContent
Assembly
MailFathom.Application.dll

What a caller asks for when reading emails from the local mailbox copy.

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

Remarks

Emails are named by their domain identity rather than as text, so an adapter converts a caller's strings once, at its own boundary, and a malformed identifier is refused before it reaches a use case.

The two representation flags govern the whole call rather than one email each. A caller asking for markup or for attachment descriptions wants them for what it is about to read, and a flag per identifier would make the argument list grow with the batch while answering a question no caller asks per email.

Fields

MaximumEmails

The greatest number of emails one read may name.

Properties

IncludeAttachmentDetails

Gets whether to also describe each attachment rather than only count them.

IncludeSanitizedHtml

Gets whether to also return the sanitized HTML representation of each body.

StoredEmailIds

Gets the emails to read, in the order the caller named them.

Methods

Create(IReadOnlyList<StoredEmailId>, bool, bool)

Creates a request from the emails a caller named.