Changes for version 0.07 - 2026-11-10
- security: trailing whitespace is stripped with \s+\z, not \s*$, which backtracked over every position of a long run of spaces inside a header value: a 320KB Subject took 23s to parse, now 10ms
- security: make refuses a disposition that is not a token, a language that is not a language tag, and a type with a control character: they went into part headers as they were, and a lone CR (which Email::MIME lets through) started a header of the client's choosing for a parser that ends lines on CR
- add t/hostile.t
- the preview reads only as much of a body as it takes to fill it: a 2MB text body parsed in 24ms, now 1.5ms (2.5MB of HTML: 32ms, 2.4ms); the preview is unchanged
Modules
Convert between Email::MIME and the JSON format from RFC 8621 (JMAP Mail)
Provides
in lib/Data/JSEmail.pm