Table of Contents

Constructor LocalMailCopy

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

LocalMailCopy(MailAccountId, OutgoingMailFiling, MailFolderResolutionId, ExtractedEmailMetadata?, PlacedEmailContent)

A message read and placed for filing into a held account's local folder, before the transaction that files it.

public LocalMailCopy(MailAccountId Account, OutgoingMailFiling Filing, MailFolderResolutionId Binding, ExtractedEmailMetadata? Metadata, PlacedEmailContent Content)

Parameters

Account MailAccountId

The account the message is filed for.

Filing OutgoingMailFiling

Which place the message is filed into, which carries its role and its flags.

Binding MailFolderResolutionId

The folder binding of the source folder playing that role.

Metadata ExtractedEmailMetadata

What was read out of the message's MIME, or null when nothing could be.

Content PlacedEmailContent

The payload, already placed where the content store keeps it.

Remarks

It is prepared outside the transaction for the reason synchronization places content outside one: under the object backend the placement reaches the endpoint. A copy whose transaction never commits leaves an object nothing points at, which reclamation removes.