Table of Contents

Method FindFiledSentCopiesAsync

Namespace
MailFathom.Application.Synchronization
Assembly
MailFathom.Application.dll

FindFiledSentCopiesAsync(MailAccountId, IReadOnlyCollection<string>, CancellationToken)

Finds the sent copies MailFathom filed locally that carry one of a batch's Message-ID values and no occurrence yet.

Task<IReadOnlyDictionary<string, StoredEmailId>> FindFiledSentCopiesAsync(MailAccountId account, IReadOnlyCollection<string> internetMessageIds, CancellationToken cancellationToken)

Parameters

account MailAccountId

The account whose filed copies are searched.

internetMessageIds IReadOnlyCollection<string>

The non-empty Message-ID values one discovered batch carries, bounded by that batch.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<IReadOnlyDictionary<string, StoredEmailId>>

The filed copy standing for each identity that has one, keyed by that identity.

Remarks

Only a copy filed from an outgoing record answers, and only one whose payload is stored: the identity is the one this deployment minted for the send, which is what makes it safe to compare, and a copy whose payload is absent is no copy the provider's may stand in for. It is one read per batch, as the recognition of appended copies is, so a sent folder the drain has not emptied yet costs one query per batch rather than one per message.