Table of Contents

Constructor LocalMailFiler

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

LocalMailFiler(ILocalMailFolderStore, IEmailMetadataRepository, IEmailContentStore, IEmailMimeReader, IMailFolderMappingReader, IMailFolderResolutionStore, IOutgoingMailFilingPolicyReader, IOutgoingMailFilingStore, ClientSignals, TimeProvider)

Initializes the filer from the stores a filed message is written through.

public LocalMailFiler(ILocalMailFolderStore folders, IEmailMetadataRepository emails, IEmailContentStore contents, IEmailMimeReader mimeReader, IMailFolderMappingReader folderMappings, IMailFolderResolutionStore folderResolutions, IOutgoingMailFilingPolicyReader filingPolicies, IOutgoingMailFilingStore filings, ClientSignals signals, TimeProvider timeProvider)

Parameters

folders ILocalMailFolderStore

Reads the account's phase and folders, and places and erases what is filed.

emails IEmailMetadataRepository

Writes the stored message.

contents IEmailContentStore

Places and saves the message's payload, and reads a send's.

mimeReader IEmailMimeReader

Reads the metadata the stored message is searched and threaded by.

folderMappings IMailFolderMappingReader

Finds the source folder playing the role a message is filed under.

folderResolutions IMailFolderResolutionStore

Finds that folder's current binding.

filingPolicies IOutgoingMailFilingPolicyReader

Answers whether an account files a sent copy at all.

filings IOutgoingMailFilingStore

Records why a sent copy could not be prepared.

signals ClientSignals

Tells the account's clients what was filed, once it commits.

timeProvider TimeProvider

Supplies the instant a supplied folder's identity is minted at.

Exceptions

ArgumentNullException

Thrown when a collaborator is null.