From 68fb25fa3fcff62dda71d2c67894eedf93291e05 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Fri, 7 Feb 2020 15:53:25 +0000 Subject: smtp: Support UTF-8 based host names in the MAIL command Non-ASCII host names will be ACE encoded if IDN is supported. --- tests/data/test962 | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 tests/data/test962 (limited to 'tests/data/test962') diff --git a/tests/data/test962 b/tests/data/test962 new file mode 100644 index 000000000..b6ec405f1 --- /dev/null +++ b/tests/data/test962 @@ -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 - UTF-8 based sender (host part only) + + +From: different +To: another + +body + + +smtp://%HOSTIP:%SMTPPORT/962 --mail-rcpt recipient@example.com --mail-from sender@åäö.se -T - + + + +# +# Verify data after the test has been "shot" + + +EHLO 962 +MAIL FROM: +RCPT TO: +DATA +QUIT + + +From: different +To: another + +body +. + + + -- cgit v1.2.3