Table of Contents

Class MailboxChangeWithdrawer

Namespace
MailFathom.Application.Mail.Mutations.Authoring
Assembly
MailFathom.Application.dll

Withdraws changes a caller authored and no longer wants, while nothing has been asked of the mail server.

public sealed class MailboxChangeWithdrawer
Inheritance
MailboxChangeWithdrawer
Inherited Members

Remarks

A change against an account nothing can reach stays pending for as long as the account stays unreachable, which is the design rather than a defect: the change is kept so that it happens when the account comes back. What that leaves a person needing is a way to say they have changed their mind, and this is it — the record moves to the stage that says so, no command is ever issued for it, and the account's next pass does not see it at all.

It withdraws nothing that reached the server. A STORE already issued cannot be recalled, and a placement whose answer never came back is the one outcome that must be re-established rather than declared void — so a record past the stage it was written down at is reported where it stands instead of being refused, which is also what makes the call safe to repeat.

The grant that authored a change is the grant that withdraws it, which is why there is an entry point per grant rather than one taking the caller's word for which surface it is. Withdrawing causes no mailbox change and cannot: the worst it does is stop one, so what it needs is authority over the same kind of change rather than authority of its own.

Constructors

MailboxChangeWithdrawer(AccessAuthorization, MailboxScopeResolver, IMailboxMutationRecordStore, OptimisticConcurrencyRetryPolicy)

Initializes the use case over the grant it asks first and the records it withdraws.

Fields

MaximumRecordsPerCall

The greatest number of records one call may withdraw.

Methods

WithdrawDeletesAsync(IReadOnlyList<MailboxMutationRecordId>, CancellationToken)

Withdraws deletes this caller authored.

WithdrawFlagChangesAsync(IReadOnlyList<MailboxMutationRecordId>, CancellationToken)

Withdraws flag and keyword changes this caller authored.

WithdrawMovesAsync(IReadOnlyList<MailboxMutationRecordId>, CancellationToken)

Withdraws folder moves this caller authored.