Skip to content

v5.3.3

Choose a tag to compare

@github-actions github-actions released this 29 Nov 13:53
037e5e7

5.3.3 (2026-11-29)

Summary

ENVELOPE (and the other parsed header values) now unfold folded header fields as RFC 5322 section 2.2.3 says: only the line break is removed and the whitespace around it is kept. A subject folded as a\r\n \tb is now a \tb instead of a b, the same value mail parsers such as mailparser return.

Who should upgrade

  • Anyone comparing ENVELOPE subjects with a MIME parser's view of the same message. Before this release they differed for folded subjects with more than one whitespace character at the fold.
  • No hurry otherwise. SORT and THREAD still normalize whitespace for the base subject as RFC 5256 requires.

Highlights

  • Folded Subject, Date, Message-ID and In-Reply-To values keep their original spacing in ENVELOPE.
  • Found with the synthetic email corpus: 7 of 11,637 messages had subjects that differed between ImapKit's ENVELOPE and the corpus oracle, now 0.

Bug Fixes

  • unfold header fields by removing only the CRLF (RFC 5322 2.2.3) (9328f5e)
  • unfold header fields by removing only the CRLF (RFC 5322 2.2.3) (3d01291)