xref: /curl/tests/data/test965 (revision 18f1cd7a)
1<testcase>
2<info>
3<keywords>
4SMTP
5IDN
6</keywords>
7</info>
8
9#
10# Server-side
11<reply>
12<servercmd>
13CAPA SMTPUTF8
14</servercmd>
15</reply>
16
17#
18# Client-side
19<client>
20<server>
21smtp
22</server>
23<features>
24IDN
25!win32
26</features>
27<setenv>
28LC_ALL=en_US.UTF-8
29LC_CTYPE=en_US.UTF-8
30</setenv>
31<precheck>
32perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
33</precheck>
34<name>
35SMTP with SMTPUTF8 support - UTF-8 based sender
36</name>
37<stdin>
38From: different
39To: another
40
41body
42</stdin>
43<command>
44smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from Avsändaren@åäö.se -T -
45</command>
46</client>
47
48#
49# Verify data after the test has been "shot"
50<verify>
51<protocol>
52EHLO %TESTNUMBER
53MAIL FROM:<Avsändaren@xn--4cab6c.se> SMTPUTF8
54RCPT TO:<recipient@example.com>
55DATA
56QUIT
57</protocol>
58<upload>
59From: different
60To: another
61
62body
63.
64</upload>
65</verify>
66</testcase>
67