Table of Contents

Constructor EmailContentReader

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

EmailContentReader(IStoredEmailSummaryReader, IEmailContentStore, IEmailContentRenderer, IEmailContentRepairRequestStore, MailboxScopeResolver, IAttachmentDownloadLinkIssuer, SensitiveContentEgressGuard, EmailContentReadOptions, IMailboxReadTelemetry)

Initializes the use case.

public EmailContentReader(IStoredEmailSummaryReader summaryReader, IEmailContentStore contentStore, IEmailContentRenderer renderer, IEmailContentRepairRequestStore repairRequestStore, MailboxScopeResolver scopeResolver, IAttachmentDownloadLinkIssuer linkIssuer, SensitiveContentEgressGuard egressGuard, EmailContentReadOptions readOptions, IMailboxReadTelemetry readTelemetry)

Parameters

summaryReader IStoredEmailSummaryReader

Reads one stored email's summary by its identity.

contentStore IEmailContentStore

Reads the raw MIME stored for an email, with what was recorded about it.

renderer IEmailContentRenderer

Turns stored raw MIME into headers, a body, and a description of every attachment.

repairRequestStore IEmailContentRepairRequestStore

Records durably that a local copy has to be fetched or read again.

scopeResolver MailboxScopeResolver

Answers whether a tool may read the mailbox an email was stored from.

linkIssuer IAttachmentDownloadLinkIssuer

Mints the short-lived capability a caller fetches an attachment with.

egressGuard SensitiveContentEgressGuard

Scans what the message's author wrote before a read publishes it.

readOptions EmailContentReadOptions

The bounds on how much body text one call returns.

readTelemetry IMailboxReadTelemetry

Publishes the read as the operation it is, beside the call it happened inside.

Exceptions

ArgumentNullException

Thrown when any argument is null.