Open azumakuniyuki opened 8 years ago
Sisimai::Address->parse() could not parsed the UTF-8 address. https://github.com/azumakuniyuki/p5-Sisimai/blob/master/lib/Sisimai/Address.pm#L106
next if $e =~ m/[^\x20-\x7e]/;
parse() does not deal an email address which is not encoded with Punycode.
For example, "🐈@neko.nyaan.jp" should be encoded "=?utf-8?B?8J+QiA==?=@neko.nyaan.jp" by Punycode. This issue will be closed soon.
RFC 6532 extends RFC 2045 to use raw UTF-8 for address fields in message header (Punycode should not be used anyway).
Additionally, RFC 6533 defines new "utf-8-addr-xtext" and "utf-8-addr-unitext" encodings to use UTF-8 addresses in delivery reports.
Thanks for the comment. I did not follow these RFCs. A short while ago, I have added 3 emails which are "Cat" in the local part of the recipient address.
https://github.com/Exim/exim/blob/master/test/mail/4223.%E0%A4%AF%E0%A4%B9%E0%A4%B2%E0%A5%8B%E0%A4%97%E0%A4%B9%E0%A4%BF%E0%A4%A8%E0%A5%8D%E0%A4%A6%E0%A5%80%E0%A4%95%E0%A5%8D%E0%A4%AF%E0%A5%8B%E0%A4%82%E0%A4%A8%E0%A4%B9%E0%A5%80%E0%A4%82%E0%A4%AC%E0%A5%8B%E0%A4%B2%E0%A4%B8%E0%A4%95%E0%A4%A4%E0%A5%87%E0%A4%B9%E0%A5%88%E0%A4%82
Sisimai::Address->new cannot create a object from the value of "addresser" above.