Folding long fields
02One logical header field can span physical lines at permitted folding white space.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.
DIAGRAM§ 2.2.3 ↗
RFC 5322 · § 2.2.3EXAMPLE
3 / 3
03
Unfold on receipt.
Remove the folding CRLF before interpreting the logical field.
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
Read the updated RFC section ↗
Unfold before interpreting a field.
- Lines must not exceed 998 characters; 78 is the recommended limit, excluding CRLF.
- Unfolding removes CRLF immediately followed by white space.
A display wrap is not necessarily a legal wire-format fold. Reject header injection.
Read the RFC section ↗Diagrams simplify the RFC. Read the linked sections for complete requirements.
Privacy