Interface IMailRuleBodyTextReader
- Namespace
- MailFathom.Application.Rules.Facts
- Assembly
- MailFathom.Application.dll
Reads the extracted body text of the one email a rule set is being evaluated for.
public interface IMailRuleBodyTextReader
Remarks
The only fact whose resolution reaches storage, and the reason the fact surface resolves lazily at all: a rule set whose conditions never name BodyText must cost no read, and a rule set that names it in several conditions must cost one. MailRuleFacts owns both halves of that, so an implementation of this port answers for its email and holds no cache of its own.
Bound to a single email by whoever constructs it, which is what keeps the identity of that email out of the fact surface: nothing a condition can write names an email, so no condition can reach a message other than the one being evaluated.
Methods
- ReadBodyTextAsync(CancellationToken)
Reads the text extracted from the email's body.