xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | SMTP |
| 5 | IDN |
| 6 | </keywords> |
| 7 | </info> |
| 8 | |
| 9 | # |
| 10 | # Server-side |
| 11 | <reply> |
| 12 | <servercmd> |
| 13 | CAPA SMTPUTF8 |
| 14 | </servercmd> |
| 15 | </reply> |
| 16 | |
| 17 | # |
| 18 | # Client-side |
| 19 | <client> |
| 20 | <server> |
| 21 | smtp |
| 22 | </server> |
| 23 | <features> |
| 24 | idn |
| 25 | !win32 |
| 26 | </features> |
| 27 | <setenv> |
| 28 | LC_ALL=en_US.UTF-8 |
| 29 | LC_CTYPE=en_US.UTF-8 |
| 30 | </setenv> |
| 31 | <precheck> |
| 32 | perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");' |
| 33 | </precheck> |
| 34 | <name> |
| 35 | SMTP with SMTPUTF8 support - UTF-8 based sender |
| 36 | </name> |
| 37 | <stdin> |
| 38 | From: different
|
| 39 | To: another
|
| 40 |
|
| 41 | body
|
| 42 | </stdin> |
| 43 | <command> |
| 44 | smtp://%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> |
| 52 | EHLO %TESTNUMBER
|
| 53 | MAIL FROM:<Avsändaren@xn--4cab6c.se> SMTPUTF8
|
| 54 | RCPT TO:<recipient@example.com>
|
| 55 | DATA
|
| 56 | QUIT
|
| 57 | </protocol> |
| 58 | <upload> |
| 59 | From: different
|
| 60 | To: another
|
| 61 |
|
| 62 | body
|
| 63 | .
|
| 64 | </upload> |
| 65 | </verify> |
| 66 | </testcase> |