test966 946 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <testcase>
  2. <info>
  3. <keywords>
  4. SMTP
  5. IDN
  6. </keywords>
  7. </info>
  8. #
  9. # Server-side
  10. <reply>
  11. <servercmd>
  12. CAPA SMTPUTF8
  13. </servercmd>
  14. </reply>
  15. #
  16. # Client-side
  17. <client>
  18. <server>
  19. smtp
  20. </server>
  21. <features>
  22. idn
  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 with SMTPUTF8 support - UTF-8 based recipient
  34. </name>
  35. <stdin>
  36. From: different
  37. To: another
  38. body
  39. </stdin>
  40. <command>
  41. smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt Stödmottagaren@åäö.se --mail-from sender@example.com -T -
  42. </command>
  43. </client>
  44. #
  45. # Verify data after the test has been "shot"
  46. <verify>
  47. <protocol>
  48. EHLO %TESTNUMBER
  49. MAIL FROM:<sender@example.com> SMTPUTF8
  50. RCPT TO:<Stödmottagaren@xn--4cab6c.se>
  51. DATA
  52. QUIT
  53. </protocol>
  54. <upload>
  55. From: different
  56. To: another
  57. body
  58. .
  59. </upload>
  60. </verify>
  61. </testcase>