Interface IStoredEmailAttachmentTextStore
- Namespace
- MailFathom.Application.Emails.AttachmentText
- Assembly
- MailFathom.Application.dll
Reads which of an account's mail still owes a reading of its attachments, and stores what one reading produced.
public interface IStoredEmailAttachmentTextStore
Remarks
The two halves are one port for the reason the embedding store's are: what the read reports as outstanding is exactly what the write stops reporting, and two implementations disagreeing about that would either read every attachment on every run or read none of them ever again.
The selection carries the same admissions the cut does — the message is still local, the user's rules have finished with it and are not still moving it, its folder is one an operator asked to have embedded, and the classification gate admits it. That is what makes withholding reach here without a second evaluation: an attachment cannot be more visible than the message that carried it, so it inherits the message's verdict by never being selected.
Methods
- DiscardAttachmentTextAsync(IPersistenceSession, StoredEmailId, CancellationToken)
Stages the removal of every reading stored for one message's attachments.
- GetEmailsAwaitingAttachmentTextAsync(MailAccountId, StoredEmailId?, int, CancellationToken)
Reads a bounded batch of the account's mail whose attachments nothing has read yet.
- SaveAttachmentTextAsync(IPersistenceSession, StoredEmailId, EmailAttachmentTextDerivation, CancellationToken)
Stores one message's attachment readings, the passages they yield, and the fact that it was read.