Method MirrorWaitingSendsAsync
- Namespace
- MailFathom.Application.Mail.Delivery.Filing
- Assembly
- MailFathom.Application.dll
MirrorWaitingSendsAsync(MailAccountId, CancellationToken)
Puts a copy of each waiting send into the folder the account mapped as its outbox.
public Task<IReadOnlyList<OutgoingMailFilingResult>> MirrorWaitingSendsAsync(MailAccountId accountId, CancellationToken cancellationToken)
Parameters
accountIdMailAccountIdThe account whose waiting sends are mirrored.
cancellationTokenCancellationTokenCancels the reads and the appends.
Returns
- Task<IReadOnlyList<OutgoingMailFilingResult>>
What each attempt did, which is empty on an account that maps no outbox folder.
Remarks
Only a send whose next attempt lies ahead is mirrored. A message the very next claim will take is gone in seconds, and appending a copy of it would put a message on somebody's mail server and take it away again for every send this deployment makes.