Interface IEmailAttachmentPassageReader
- Namespace
- MailFathom.Application.Emails.AttachmentText
- Assembly
- MailFathom.Application.dll
Reads back the passages one message's attachments were cut into, each with the place inside its file.
public interface IEmailAttachmentPassageReader
Remarks
The port exists because an attachment passage is content a caller may legitimately receive, which is the one way this model differs from the message's. Nothing serves a message chunk back — a search or an answer that needs a message reads it in full — and there is deliberately no equivalent of this port for one.
It resolves the coordinate rather than making a caller do it. A passage records where it begins in the attachment's extracted text and the attachment records where each of its pages begins in that same text, so turning the first into the second is one comparison — but it is a comparison every caller would otherwise write, and one of them would write it as the first boundary at or after the offset and cite the following page.
It reaches no parser, no provider, and no mail server. Everything it returns was derived by a background pass and stored, which is what lets a read path use it at all.
Methods
- ReadAttachmentPassagesAsync(StoredEmailId, AttachmentPassagePosition?, int, CancellationToken)
Reads one window of the passages cut from a message's attachments.