Table of Contents

Enum ImageDescriptionRefusal

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

Names why an image attachment produced no description, at the granularity a caller acts on.

public enum ImageDescriptionRefusal

Fields

FormatExcluded = 2

The octets are a markup document — an SVG image among them — rather than a raster picture.

Told apart from an unrecognized format because the two are refused for different reasons and only one of them is a candidate for ever being admitted. An SVG is XML that a renderer executes as a document, with script and external references available to whoever composed it, and nothing here is a renderer with a security team behind it; an unrecognized format is merely one nothing has been written for.

FormatNotSupported = 1

The octets are not one of the formats ImageAttachmentFormat admits.

ImageTooLarge = 3

The attachment holds more octets than one request may send.

ImageUnreadable = 5

The octets name a supported format and then do not hold one: the header is truncated, malformed, or absent.

NotActivated = 0

The deployment has not turned image description on, so no attachment octets left it.

The default state of an instance, and the one refusal that is a configuration rather than a property of the image.

PixelGridTooLarge = 4

The image's own header declares a pixel grid larger than this deployment allows a decoder to be asked for.

The decompression-bomb refusal, and the reason the header is read before anything else happens to the octets: a small file may declare an enormous grid, and the cost of finding out is the allocation the declaration asks for.

ProviderRefused = 8

The provider answered by refusing, and repeating the request cannot change that.

A rejected credential, a request the model or its safety system would not take, and an answer that arrived carrying no text.

ProviderTimedOut = 6

The request outlived the time the deployment allows one chat call.

ProviderUnavailable = 7

The provider did not answer, and asking again later may produce one.

An unreachable endpoint, a dropped connection, an unreadable response, or a rate the deployment is over.

Remarks

One value per decision a caller could take differently, and the nine fall into three groups.

Three are properties of the octets and will not change however often the attachment is offered: FormatNotSupported, FormatExcluded, and ImageUnreadable. A caller records one of those against the attachment and never asks again.

Three are properties of the configuration and are lifted the moment an operator changes it: NotActivated is the switch itself, ImageTooLarge is the chat endpoint's octet ceiling, and PixelGridTooLarge is this deployment's grid ceiling. A caller does not retry one of those on its own, and it does not treat one as settled either — turning description on, or raising either ceiling, is a backfill over everything already stored, and an attachment refused for one of these three is exactly what that backfill is for.

The remaining three are the provider's: ProviderTimedOut and ProviderUnavailable say it may answer later, and ProviderRefused says it will not.

A caller's own cancellation is absent, exactly as it is from ChatGenerationFailure: it arrives as an OperationCanceledException and is a decision this system took rather than an outcome the attachment or the provider produced.