Interface IStoredEmailChunkingStore
- Namespace
- MailFathom.Application.Emails.Chunking
- Assembly
- MailFathom.Application.dll
Reads the mail whose passages the arrival pipeline still owes, and cuts them from what is already stored.
public interface IStoredEmailChunkingStore
Remarks
The selection is the whole contract. A message leaves it by being cut, so a pass needs no cursor of its own and a repeat costs one query rather than a second walk of the mailbox; and what puts a message into it is stated by the implementation rather than by the caller, so the classification gate, the folder's embedding switch, and the record that the rules have finished with the message are one predicate instead of three the pass could get out of order.
Methods
- DeriveChunksAsync(IPersistenceSession, StoredEmailId, CancellationToken)
Cuts one message's passages from the text an earlier extraction stored, inside the caller's session.
- GetEmailsAwaitingChunkingAsync(MailAccountId, int, CancellationToken)
Reads one bounded batch of the account's mail that is ready to be cut and has not been.