Table of Contents

Field MaximumDeclaredMediaTypeLength

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

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

public const int MaximumDeclaredMediaTypeLength = 255

Returns

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

Remarks

The sender writes the Content-Type header and the MIME parser reads a type out of it with no ceiling of its own, so this is the one sender-controlled string on this record that nothing upstream bounds — a file name reaches here already normalized to a ceiling of its own. Without it a message declaring a three-hundred-character type makes the insert fail on the column's width, which is not a conflict the commit policy retries, so the message is never stamped and every later run reaches it first and fails at the same statement. RFC 6838 puts a real type and subtype far below this, so a claim longer than it is malformed rather than merely long.