This series is based around Arnt Gulbrandsen's patch for adding SMTPUTF8 support. His original patch is number 4 in the series.
Patch 1 is some renaming and compile changes. It's separated just to try to keep the second patch a bit more readable. In patch 2, mutt_idna.c is changed to perform charset conversion for both the user and domain part. It makes the IDNA encoding optional, while still checking for reversibility. Because of the large number of changes, the diff is a bit ugly. It may be worthwhile to apply the patch and look at the resulting mutt_idna.c instead. Patch 3 adds a new option, idn_encode, so that the muttrc/user can control when idna encoding is done. This also allows a single mutt binary compiled +idna to be used in UTF-8 and IDNA mode. It also renames use_idn to idn_decode. To test UTF-8 mode, I suggest: set idn_decode (the default) unset idn_encode. Patch 4 is Arnt's changes to smtp.c to look for and announce SMTPUTF8 to the SMTP server. I've tested patches 1-3 as best I can. Fastmail isn't currently accepting UTF-8 user parts, so unfortunately I wasn't able to test patch 4. I'd welcome feedback from anyone able to test it. -- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA http://www.8t8.us/configs/gpg-key-transition-statement.txt
signature.asc
Description: PGP signature
