Table of Contents

Enum AttachmentTextExtractionOutcome

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

States what reading one attachment produced, or exactly what stopped it.

public enum AttachmentTextExtractionOutcome

Fields

ContainerBoundExceeded = 5

A container format exceeded a decompression, ratio, part-count, nesting, or string-table ceiling while it was being read.

The string-table one is the odd member of that list, because the number it is measured against is the output ceiling rather than a container ceiling of its own: a workbook's shared strings cost a list slot each whether or not they carry a character, so the count is bounded even where the characters are not. It is reported here rather than as ExtractedTextTooLarge because what was passed is a count of entries held in memory rather than characters a user would get back.

Encrypted = 6

The document is encrypted and no password to it exists anywhere in this system.

Extracted = 0

The attachment was read and its text is present.

ExtractedTextTooLarge = 4

The attachment yielded more characters than the configured output ceiling, so it was abandoned.

FormatNotExtracted = 2

The format is recognized and nothing here parses it.

What the three legacy binary formats produce, and what a format an operator excluded produces.

FormatNotRecognized = 1

Neither the media type nor the file name names a document format, so nothing was offered a parser.

InputTooLarge = 3

The attachment holds more octets than the configured input ceiling, so it was not read.

Malformed = 7

The bytes do not parse as the format they declare, which is expected of real mail rather than exceptional.

TimedOut = 8

Reading took longer than the configured timeout, so it was abandoned.

Remarks

The set is closed, and every member is distinguishable from every other, because the whole point of the reasons is that a mailbox user is told their contract was skipped rather than searched and found empty. Nothing here collapses into a generic failure and nothing is represented by an empty string.