Table of Contents

Interface IEmailContentRepairRequestStore

Namespace
MailFathom.Application.EmailContent.Repair
Assembly
MailFathom.Application.dll

Records durably that an email's local content needs repairing, so a later run can act on it.

public interface IEmailContentRepairRequestStore

Remarks

The port exists because a read discovers the defect and a synchronization run is what can fix it, and the two never share a process lifetime. A counter in a log line or a queue held in memory would lose the finding the moment the host restarted, which is the case a damaged local copy is most likely to be discovered in.

Performing the repair is deliberately not part of this contract: a read must never reach a mail server, so the most this port may do is leave a durable note behind. It takes no persistence session for the same reason — the read it belongs to opens no transaction, and the note is worth keeping whether or not the read that produced it completes.

Methods

RecordAsync(EmailContentRepairRequest, CancellationToken)

Records one email's repair request, replacing whatever was recorded for that email before.