From e7959c280c0361d2e448776d9ea11305e2f026bc Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sat, 8 Feb 2020 00:14:57 +0000 Subject: smtp: Support UTF-8 based host names in the RCPT TO command --- tests/data/test963 | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 tests/data/test963 (limited to 'tests/data/test963') diff --git a/tests/data/test963 b/tests/data/test963 new file mode 100644 index 000000000..6328304c4 --- /dev/null +++ b/tests/data/test963 @@ -0,0 +1,62 @@ + + + +SMTP +IDN + + + +# +# Server-side + + + +# +# Client-side + + +smtp + + +idn + + +LC_ALL=en_US.UTF-8 +LC_CTYPE=en_US.UTF-8 + + +perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");' + + +SMTP without SMTPUTF8 support (IDN Enabked) - UTF-8 based recipient (host part only) + + +From: different +To: another + +body + + +smtp://%HOSTIP:%SMTPPORT/963 --mail-rcpt recipient@åäö.se --mail-from sender@example.com -T - + + + +# +# Verify data after the test has been "shot" + + +EHLO 963 +MAIL FROM: +RCPT TO: +DATA +QUIT + + +From: different +To: another + +body +. + + + -- cgit v1.2.3