From 483edeb8dda80406f56480965d3c649bb3b2e77b Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Thu, 13 Feb 2020 22:39:28 +0000 Subject: smtp: Support the SMTPUTF8 extension in the RCPT TO command Note: The RCPT TO command isn't required to advertise to the server that it contains UTF-8 characters, instead the server is told that a mail may contain UTF-8 in any envelope command via the MAIL command. --- tests/data/test966 | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 tests/data/test966 (limited to 'tests/data/test966') diff --git a/tests/data/test966 b/tests/data/test966 new file mode 100644 index 000000000..6dc839aba --- /dev/null +++ b/tests/data/test966 @@ -0,0 +1,65 @@ + + + +SMTP +IDN + + + +# +# Server-side + + +CAPA SMTPUTF8 + + + +# +# 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 with SMTPUTF8 support - UTF-8 based recipient + + +From: different +To: another + +body + + +smtp://%HOSTIP:%SMTPPORT/966 --mail-rcpt Stödmottagaren@åäö.se --mail-from sender@example.com -T - + + + +# +# Verify data after the test has been "shot" + + +EHLO 966 +MAIL FROM: SMTPUTF8 +RCPT TO: +DATA +QUIT + + +From: different +To: another + +body +. + + + -- cgit v1.2.3