Table of Contents

Class AttachmentTextExtractionResult

Namespace
MailFathom.Application.Emails.Extraction.Attachments
Assembly
MailFathom.Application.dll

Carries the text one attachment yielded, or the reason it yielded none.

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

Remarks

Failure is a result rather than an exception for the reason MIME extraction gives: an attachment nobody can read must be recorded and stepped over, leaving the message and the run that found it to continue. A parser raising something a caller would have to interpret is exactly what this port exists to stop.

Properties

Outcome

Gets what happened.

ReadTheAttachment

Gets whether the attachment's octets were actually handed to a parser.

Text

Gets the extracted text, which is present exactly when Outcome is Extracted.

Methods

ContainerBoundExceeded()

Reports a container that exceeded one of its structural ceilings.

Encrypted()

Reports a document this system holds no password for.

Extracted(ExtractedAttachmentText)

Reports an attachment that was read.

ExtractedTextTooLarge()

Reports an attachment that yielded more text than the configured output ceiling.

FormatNotExtracted()

Reports a recognized format nothing here reads.

FormatNotRecognized()

Reports an attachment whose declaration names no document format.

InputTooLarge()

Reports an attachment past the configured input ceiling.

Malformed()

Reports bytes that do not parse as the format they declare.

TimedOut()

Reports an extraction abandoned at its timeout.