test649 1.4 KB

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