aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test964
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2020-02-08 00:37:03 +0000
committerSteve Holme <steve_holme@hotmail.com>2020-02-26 11:02:38 +0000
commit2aa6c1735a84f6df11b5f5863a704034b820c925 (patch)
tree15598b3ed7640e57fc6392b9382ecc213a052259 /tests/data/test964
parente7959c280c0361d2e448776d9ea11305e2f026bc (diff)
smtp: Support UTF-8 based host names in the VRFY command
Diffstat (limited to 'tests/data/test964')
-rw-r--r--tests/data/test96448
1 files changed, 48 insertions, 0 deletions
diff --git a/tests/data/test964 b/tests/data/test964
new file mode 100644
index 000000000..326cdd21e
--- /dev/null
+++ b/tests/data/test964
@@ -0,0 +1,48 @@
+<testcase>
+<info>
+<keywords>
+SMTP
+VRFY
+IDN
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+smtp
+</server>
+<features>
+idn
+</features>
+<setenv>
+LC_ALL=en_US.UTF-8
+LC_CTYPE=en_US.UTF-8
+</setenv>
+<precheck>
+perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
+</precheck>
+ <name>
+SMTP external VRFY without SMTPUTF8 support (IDN Enabled) - UTF-8 based recipient (host part only)
+ </name>
+<command>
+smtp://%HOSTIP:%SMTPPORT/964 --mail-rcpt user@åäö.se
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+EHLO 964
+VRFY user@xn--4cab6c.se
+QUIT
+</protocol>
+</verify>
+</testcase>