Table of Contents

Class DerivedAttachmentText

Namespace
MailFathom.Application.Emails.AttachmentText
Assembly
MailFathom.Application.dll

What one attachment of one message yielded, or the recorded reason it yielded nothing.

public sealed record DerivedAttachmentText : IEquatable<DerivedAttachmentText>
Inheritance
DerivedAttachmentText
Implements
Inherited Members

Remarks

One of these is written per attachment whichever way it went, which is what makes a mailbox user's question answerable: a contract that was skipped says so, rather than being searched and found empty. It is also what stops a retry loop — an attachment nothing could read has a durable record saying why, and the pass that walks the mailbox steps past it instead of offering it to a parser on every run.

Text is mail content and is never a log line, a metric dimension, a trace attribute, or part of an error message. FileName is mail content too — a sender chose it. The position, the media type, the outcome, the page count, and the segment boundaries are the members safe to report.

Fields

MaximumDeclaredMediaTypeLength

The greatest number of characters a declared media type is recorded with.

Properties

BelongsInLexicalIndex

Gets whether these words belong in the lexical index as well as in the vector one.

DeclaredMediaType

Gets the media type the part declared, which is the sender's claim rather than a reading of the octets.

FileName

Gets the normalized file name, or null where the part carried no usable name.

HasText

Gets whether this attachment contributed words to derive passages from.

Kind

Gets whether these words are the file's own or a description of a picture.

Outcome

Gets what happened, named by the member of the closed set the port it came from publishes.

PageCount

Gets how many pages, slides, or sheets the document was read as, which is zero for anything unread.

Position

Gets the zero-based place the attachment holds in the order the message's structure is walked.

Segments

Gets where each of those pages begins in Text, empty for anything unread.

Text

Gets the words the attachment yielded, or null where it yielded none.

Methods

FromDescription(int, string, string?, ImageAttachmentDescription)

Records what reading one image attachment produced.

FromExtraction(int, string, string?, AttachmentTextExtractionResult)

Records what reading one document attachment produced, with nothing read off the pictures inside it.

FromExtraction(int, string, string?, AttachmentTextExtractionResult, IReadOnlyList<EmbeddedPictureReading>)

Records what reading one document attachment and the pictures inside it produced.

PastMessageBudget(int, string, string?)

Records an attachment the message's own ceiling stopped before anything was offered a parser.

WithRedactedText(RedactedText)

Reports the same derivation with its words replaced by their redacted form.