Field MaximumIdentifierLength
- Namespace
- MailFathom.Domain.Emails
- Assembly
- MailFathom.Domain.dll
The greatest number of characters one identifier may carry.
public const int MaximumIdentifierLength = 998
Returns
- int
- The greatest number of characters one identifier may carry.
Remarks
RFC 5322 bounds a header line to 998 octets, so no identifier a mail server minted reaches this length, while nothing between a sender and this system enforces that bound: a folded header can carry a value of any size, and a reader that published it verbatim would return megabytes from a contract that promises bounded content.
A longer identifier is refused rather than truncated, for the reason the persisted column refuses one: a prefix of a message identifier is an identifier another message may legitimately carry, and a conversation assembled from it would join messages that have nothing to do with each other.