test649 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <testcase>
  2. <info>
  3. <keywords>
  4. SMTP
  5. MULTIPART
  6. </keywords>
  7. </info>
  8. #
  9. # Server-side
  10. <reply>
  11. </reply>
  12. #
  13. # Client-side
  14. <client>
  15. <features>
  16. Mime
  17. </features>
  18. <server>
  19. smtp
  20. </server>
  21. <name>
  22. SMTP multipart with 7bit encoder error
  23. </name>
  24. <stdin>
  25. From: different
  26. To: another
  27. body
  28. </stdin>
  29. <command>
  30. smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -F '=This is valid;encoder=7bit' -F "=@%LOGDIR/test%TESTNUMBER.txt;encoder=7bit" -H "From: different" -H "To: another"
  31. </command>
  32. <file name="%LOGDIR/test%TESTNUMBER.txt">
  33. This is an attached file (in french: pièce jointe).
  34. It contains at least an 8-bit byte value.
  35. </file>
  36. </client>
  37. #
  38. # Verify data after the test has been "shot"
  39. <verify>
  40. <strippart>
  41. s/^--------------------------[A-Za-z0-9]*/------------------------------/
  42. s/boundary=------------------------[A-Za-z0-9]*/boundary=----------------------------/
  43. </strippart>
  44. <protocol>
  45. EHLO %TESTNUMBER
  46. MAIL FROM:<sender@example.com>
  47. RCPT TO:<recipient@example.com>
  48. DATA
  49. </protocol>
  50. <upload nonewline="yes">
  51. Content-Type: multipart/mixed; boundary=----------------------------
  52. Mime-Version: 1.0
  53. From: different
  54. To: another
  55. ------------------------------
  56. Content-Transfer-Encoding: 7bit
  57. This is valid
  58. ------------------------------
  59. Content-Disposition: attachment; filename="test%TESTNUMBER.txt"
  60. Content-Transfer-Encoding: 7bit
  61. This is an attached file (in french: pi
  62. </upload>
  63. <errorcode>
  64. 26
  65. </errorcode>
  66. </verify>
  67. </testcase>