Table of Contents

Method RequeueAsync

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

RequeueAsync(OutgoingEmailId, bool, CancellationToken)

Offers one of this user's sends again, which is the decision this system will not take on its own.

public Task<OutboxDecisionOutcome> RequeueAsync(OutgoingEmailId outgoingEmailId, bool refusalRestated, CancellationToken cancellationToken)

Parameters

outgoingEmailId OutgoingEmailId

The record to offer again.

refusalRestated bool

Whether the caller has restated a permanent refusal, which a refused send needs before it is offered again.

cancellationToken CancellationToken

Cancels the read and the write.

Returns

Task<OutboxDecisionOutcome>

What became of the send, which is RecordUnknown for one this user does not hold.

Remarks

It names one send and never a set, for the reason the administrative decision does: a message whose outcome nobody knows may already be in somebody's mailbox, so offering it again is a decision about that one message and a filtered re-queue would be an unknown number of duplicates asked for in one request.

Exceptions

PrincipalNotAuthorizedException

Thrown when the caller does not hold MailSend, or is acting for no user.