Summary
- RFC 5322, October 2008, specifies "the Internet Message Format (IMF), a syntax for text messages that are sent between computer users", revising RFC 2822 and, before it, RFC 822.
- Its strangest contribution is Section 4, where obsolete syntax "MUST NOT be generated" by conformant software and yet "MUST be accepted" by conformant receivers.
- One specification, two grammars: one for what software may write, one for what it must survive reading.
A rulebook with a junk drawer
Every long-lived format eventually hits the same embarrassing moment. The specification says one thing; the wire says another. Between 1982 and 2008, email accumulated a pile of addresses, headers and date formats that were technically illegal and completely ordinary — emitted by real software, relayed by real gateways, sitting in real inboxes.
RFC 5322, published in October 2008, could have pretended otherwise. Instead it did what almost no standard bothers to do: it wrote the mess down, gave it a section number, and made reading it compulsory.
Two grammars, one document
The folk wisdom is Postel's law: be conservative in what you send, liberal in what you receive. Most specifications publish only the first half. The liberal half is left to implementers, each of whom invents a private version of it and then defends that version in a bug tracker for twenty years.
RFC 5322 publishes both halves. Section 3 is the grammar you may generate. Section 4 is the grammar you must accept: the obsolete forms earlier specifications allowed, plus the ones that simply turned up. A generator that emits them is wrong. A parser that rejects them is also wrong. The document is equally stern in both directions, which is a strange and rather admirable thing for a rulebook to be.
Why writing the junk down matters
Leave tolerance as folklore and you get a thousand private dialects, each a small local monopoly on what "works". Write it into the specification and it becomes a shared obligation: finite, numbered, testable, and identical for everyone.
It also does something subtler. It tells the next implementer what is already out there. You can read Section 4 before the first customer with an unusual provider arrives, rather than learning it from a support ticket at two in the morning.
The bill for carrying history
Two grammars mean two code paths, two test suites and two distinct ways to be wrong. Every parser is a museum of every version that came before it, including the versions the current standard has already condemned.
The bill never comes due in full, because sent mail is not reissued. A standard for a store-and-forward medium cannot withdraw support for a form it once permitted: the messages are already in the archive, and they will be forwarded again tomorrow.
Where else this shows up
Any format with a memory does a version of this. JSON parsers swallow a byte-order mark. Browsers forgive spaces in URLs. HTML parsers close tags nobody closed. In most of those cases the tolerance is undocumented folklore, discovered by experiment and preserved by superstition.
RFC 5322's tolerance is a numbered section with requirements attached — about as close as a standard can come to saying: we know this is ugly, and you still have to read it.
The compatibility lesson
Compatibility is not a virtue that appears on its own. It is a list. Whoever writes the list gets a testable obligation instead of a vague hope, and everyone downstream gets the same list instead of a private one.
A specification that refuses to describe what actually arrives does not become pure. It becomes a museum piece.
So when a format has to live with its own history: publish the history as grammar, mark clearly which half is for writing and which is for reading, and accept the permanent asymmetry. The parser will always be larger than the writer, because the writer only has to be correct while the parser has to be forgiving.
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






