Table of Contents

Class EmailOccurrenceId

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

Identifies one stable remote IMAP email occurrence.

public sealed record EmailOccurrenceId : IEquatable<EmailOccurrenceId>
Inheritance
EmailOccurrenceId
Implements
Inherited Members

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.

Constructors

EmailOccurrenceId(MailAccountId, MailFolderResolutionId, ImapUidValidity, ImapUid)

Identifies one stable remote IMAP email occurrence.

Properties

AccountId
FolderResolutionId
Uid
UidValidity

Methods

Create(MailAccountId, MailFolderResolutionId, ImapUidValidity, ImapUid)

Creates a stable remote occurrence identity.