xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | SMTP |
| 5 | </keywords> |
| 6 | </info> |
| 7 | |
| 8 | # |
| 9 | # Server-side |
| 10 | <reply> |
| 11 | <servercmd> |
| 12 | REPLY MAIL 501 not fine enough |
| 13 | </servercmd> |
| 14 | </reply> |
| 15 | |
| 16 | # |
| 17 | # Client-side |
| 18 | <client> |
| 19 | <server> |
| 20 | smtp |
| 21 | </server> |
| 22 | <features> |
| 23 | !win32 |
| 24 | </features> |
| 25 | <setenv> |
| 26 | LC_ALL=en_US.UTF-8 |
| 27 | LC_CTYPE=en_US.UTF-8 |
| 28 | </setenv> |
| 29 | <precheck> |
| 30 | perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");' |
| 31 | </precheck> |
| 32 | <name> |
| 33 | SMTP without SMTPUTF8 support - UTF-8 based sender (local part only) |
| 34 | </name> |
| 35 | <stdin> |
| 36 | From: different
|
| 37 | To: another
|
| 38 |
|
| 39 | body
|
| 40 | </stdin> |
| 41 | <command> |
| 42 | smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from Avsändaren@example.com -T - |
| 43 | </command> |
| 44 | </client> |
| 45 | |
| 46 | # |
| 47 | # Verify data after the test has been "shot" |
| 48 | <verify> |
| 49 | # 55 - CURLE_SEND_ERROR |
| 50 | <errorcode> |
| 51 | 55 |
| 52 | </errorcode> |
| 53 | <protocol> |
| 54 | EHLO %TESTNUMBER
|
| 55 | MAIL FROM:<Avsändaren@example.com>
|
| 56 | QUIT
|
| 57 | </protocol> |
| 58 | </verify> |
| 59 | </testcase> |