On Thu, Apr 23, 2020 at 07:11:08AM -0700, Kevin J. McCarthy wrote:
Claus, would it be acceptable for Mutt to normalize the email addresses you send or reply to? That way, 2047-encoding and IDNA can be properly applied.
A patch for that behavior would look like this: diff --git a/rfc2047.c b/rfc2047.c index 7ed08c50..e7f7a889 100644 --- a/rfc2047.c +++ b/rfc2047.c @@ -616,8 +616,13 @@ void rfc2047_encode_adrlist (ADDRESS *addr, const char *tag) else if (ptr->group && ptr->mailbox) _rfc2047_encode_string (&ptr->mailbox, 1, col); #ifdef EXACT_ADDRESS + /* Exact addresses can't be properly 2047 encoded or even + * IDNA encoded, and still preserve the original format. + * So, instead, just drop the original format when encoding + * to send. + */ if (ptr->val) - _rfc2047_encode_string (&ptr->val, 1, col); + FREE (&ptr->val); #endif ptr = ptr->next; }I would need to change the documentation and comments in a few places to note that "exact address" is now about displaying the addresses as originally received, not preserving how they are written when sending too.
-- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
signature.asc
Description: PGP signature