Table of Contents

Method AccountsForPlacementAt

Namespace
MailFathom.Domain.Delivery.Filing
Assembly
MailFathom.Domain.dll

AccountsForPlacementAt(RemoteFolderPath, ImapUidValidity, ImapUid)

Reports whether a newly discovered occurrence is the copy this filing appended.

public bool AccountsForPlacementAt(RemoteFolderPath discoveredFolderPath, ImapUidValidity discoveredUidValidity, ImapUid discoveredUid)

Parameters

discoveredFolderPath RemoteFolderPath

The remote path of the folder the occurrence was discovered in.

discoveredUidValidity ImapUidValidity

The UIDVALIDITY that folder reports now.

discoveredUid ImapUid

The UID the discovered occurrence carries.

Returns

bool

true when the server itself named this occurrence as where it put the copy.

Remarks

The UIDVALIDITY is compared as well as the UID, so a folder recreated between the append and the discovery matches nothing here: the recorded UID names a message in a UID space the folder no longer has. Such a discovery falls to AccountsForMessageAt(RemoteFolderPath, string?), which compares an identity a renumbering does not touch.