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
AccountMailAccountIdThe account the message is filed for.
FilingOutgoingMailFilingWhich place the message is filed into, which carries its role and its flags.
BindingMailFolderResolutionIdThe folder binding of the source folder playing that role.
MetadataExtractedEmailMetadataWhat was read out of the message's MIME, or null when nothing could be.
ContentPlacedEmailContentThe 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.