mirror of
https://github.com/KumoCorp/kumomta.git
synced 2026-10-04 08:00:33 +00:00
Headers were built and rebuilt as "Mime-Version" rather than "MIME-Version". Both are valid per RFC 2045, but some spam filters, such as rspamd, score the mixed-case form as a deliverability signal. Fix the header name in the accessor macro and in ParsedHeader's grammar table, the places that spell it, and update the snapshot tests across mailparsing, message, kumo-log-types, mod-mimepart, and kumod that captured the old spelling, along with the reference docs that showed the old casing in their examples. #564
229 B
229 B
mime_version
local mime_version = headers:mime_version()
{{since('2025.10.06-5ec871ab')}}
Parses the MIME-Version header, and if present, returns it as a string.
Returns nil if MIME-Version is not present.