mirror of
https://github.com/KumoCorp/kumomta.git
synced 2026-11-21 00:02:12 +00:00
RFC 3464 section 2.1.2 makes address types case-insensitive, but the recipient parser only normalizes addresses for an exact lowercase rfc822 match. This leaves angle brackets intact in OOB recipients for RFC822 reports. Trim the type before comparing it case-insensitively, reuse the existing SMTP address parser, and cover original and final recipients with tests. Preserve the reported type spelling and other address types. closes: https://github.com/KumoCorp/kumomta/pull/640