Table of Contents

Constructor EmailContentReader

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

EmailContentReader(IStoredEmailSummaryReader, IEmailContentStore, IEmailContentRenderer, IEmailContentRepairRequestStore, IMailAccountCatalog, EmailContentReadOptions)

Initializes the use case.

public EmailContentReader(IStoredEmailSummaryReader summaryReader, IEmailContentStore contentStore, IEmailContentRenderer renderer, IEmailContentRepairRequestStore repairRequestStore, IMailAccountCatalog accountCatalog, EmailContentReadOptions readOptions)

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 attachment metadata.

repairRequestStore IEmailContentRepairRequestStore

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

accountCatalog IMailAccountCatalog

Answers which accounts this deployment serves.

readOptions EmailContentReadOptions

The bounds on how much body text one call returns.

Exceptions

ArgumentNullException

Thrown when any argument is null.