Table of Contents

Constructor EmailOccurrenceId

Namespace
MailFathom.Domain.Emails
Assembly
MailFathom.Domain.dll

EmailOccurrenceId(MailAccountId, MailFolderResolutionId, ImapUidValidity, ImapUid)

Identifies one stable remote IMAP email occurrence.

public EmailOccurrenceId(MailAccountId AccountId, MailFolderResolutionId FolderResolutionId, ImapUidValidity UidValidity, ImapUid Uid)

Parameters

AccountId MailAccountId
FolderResolutionId MailFolderResolutionId
UidValidity ImapUidValidity
Uid ImapUid

Remarks

The identity deliberately uses account, folder, UIDVALIDITY, and UID because IMAP UIDs are stable only within one folder UIDVALIDITY scope. The folder component is a MailFolderResolutionId rather than an alias, because an alias can be repointed to a different remote folder and UIDVALIDITY does not distinguish the two.