Table of Contents

Interface IAuthoredDeleteEmailDispositionReader

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

Answers what one account keeps locally of an email MailFathom is about to delete on its mail server.

public interface IAuthoredDeleteEmailDispositionReader

Remarks

It is read where the delete is authored rather than where it completes, because those are different runs: the deletion is written down and issued now, and the local copy is disposed of by the synchronization run that later sees the message gone. Reading the configuration there would apply whatever an operator had changed it to in the meantime, so the answer this gives travels on the mutation record instead.

It is a port of its own rather than a second method on IRemotelyDeletedEmailDispositionReader because the two answer for different acts and are read by different callers: that one belongs to reconciliation observing a removal somebody else made, and this one to the act of deleting. One port would let a caller reach for the wrong answer with no signature to stop it.

Methods

GetAuthoredDeleteDisposition(MailAccountId)

Gets the disposition configured for one account's own deletions.