Table of Contents

Method ReadDuplicatedSentCopiesAsync

Namespace
MailFathom.Application.Mail.Delivery.Filing
Assembly
MailFathom.Application.dll

ReadDuplicatedSentCopiesAsync(MailAccountId, DateTimeOffset, int, CancellationToken)

Reads the sent copies this account filed that the folder now holds a second occurrence of.

Task<IReadOnlyList<OutgoingEmailId>> ReadDuplicatedSentCopiesAsync(MailAccountId account, DateTimeOffset appendedSince, int limit, CancellationToken cancellationToken)

Parameters

account MailAccountId

The account whose filings are read.

appendedSince DateTimeOffset

The earliest append a duplicate is still acted on for.

limit int

The greatest number of sends one pass withdraws a copy for.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<IReadOnlyList<OutgoingEmailId>>

The sends whose own filed copy the folder holds a duplicate of, which may be none.

Remarks

A row is answered for only where the server named the occurrence it appended: without that placement the two occurrences carry one identity between them and nothing says which of them this system put there, so a withdrawal would be as likely to take the provider's copy as its own. The second occurrence is recognized by the identity the appended bytes carry, in the same folder and the same UID space, at a UID the placement does not name — and only while the folder still holds it, because a copy the user has already deleted is no reason to take the remaining one away from them.

Nothing here reads mail. A folder, a UID, and a Message-ID MailFathom minted itself are what the comparison is made of, which is what lets a duplicate be found without the message.

Exceptions

ArgumentOutOfRangeException

Thrown when limit is not positive.