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