Discussion:
[bug-mailutils] mu-address-get-personal swallows UTF-8 encoded characters
Ricardo Wurmus
2018-08-28 17:49:44 UTC
Permalink
Hi,

is it expected that “mu-address-get-personal” swallows non-ASCII
characters? Here’s an example:

(mu-address-get-personal "***@bar.net (Edward Nunèz)")
$1 = "Edward Nunz"

Can this be avoided?

--
Ricardo
Sergey Poznyakoff
2018-08-28 22:18:23 UTC
Permalink
Hi Ricardo,
is it expected that mu-address-get-personal swallows non-ASCII
characters?
Yes. According to RFC 2822 such characters are not allowed in email
addresses.
The personal part should have been encoded as per RFC 2047.
Can this be avoided?
It is not clear how to encode such characters. The address above does
not carry any information about charset or encoding, so it is impossible
to handle 8-bit bytes in any reasonable way.

Regards,
Sergey

Loading...