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 = 5A 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 = 6The document is encrypted and no password to it exists anywhere in this system.
Extracted = 0The attachment was read and its text is present.
ExtractedTextTooLarge = 4The attachment yielded more characters than the configured output ceiling, so it was abandoned.
FormatNotExtracted = 2The format is recognized and nothing here parses it.
What the three legacy binary formats produce, and what a format an operator excluded produces.
FormatNotRecognized = 1Neither the media type nor the file name names a document format, so nothing was offered a parser.
InputTooLarge = 3The attachment holds more octets than the configured input ceiling, so it was not read.
Malformed = 7The bytes do not parse as the format they declare, which is expected of real mail rather than exceptional.
TimedOut = 8Reading 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.