Table of Contents

Method AccountsForMessageAt

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

AccountsForMessageAt(RemoteFolderPath, string?)

Reports whether a newly discovered occurrence carries the identity of the message this filing appended.

public bool AccountsForMessageAt(RemoteFolderPath discoveredFolderPath, string? discoveredMessageId)

Parameters

discoveredFolderPath RemoteFolderPath

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

discoveredMessageId string

The Message-ID the server reported for the discovery, which may be absent.

Returns

bool

true when the discovery is this copy by the identity the message carries.

Remarks

This is the join for a server that advertises no UIDPLUS, and it is a comparison of identities rather than a search for something that looks like the message: MailFathom minted the value, it is unguessable, and it is in the bytes that were appended. What it is not is the server's own statement, which is why the reported placement is preferred wherever there is one.

The folder is compared too, so the same message filed into two folders is joined to the filing whose folder it was found in rather than to whichever row sorted first.