test841 689 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <testcase>
  2. <info>
  3. <keywords>
  4. IMAP
  5. Clear Text
  6. FETCH
  7. CUSTOMREQUEST
  8. </keywords>
  9. </info>
  10. #
  11. # Server-side
  12. <reply>
  13. <data>
  14. body
  15. + Curl did not used to like this line
  16. --
  17. yours sincerely
  18. </data>
  19. <datacheck>
  20. * 123 FETCH (BODY[1] {70}
  21. </datacheck>
  22. </reply>
  23. #
  24. # Client-side
  25. <client>
  26. <server>
  27. imap
  28. </server>
  29. <name>
  30. IMAP custom request doesn't check continuation data
  31. </name>
  32. <command>
  33. imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/ -u user:secret -X 'FETCH 123 BODY[1]'
  34. </command>
  35. </client>
  36. #
  37. # Verify data after the test has been "shot"
  38. <verify>
  39. <protocol>
  40. A001 CAPABILITY
  41. A002 LOGIN user secret
  42. A003 SELECT %TESTNUMBER
  43. A004 FETCH 123 BODY[1]
  44. A005 LOGOUT
  45. </protocol>
  46. </verify>
  47. </testcase>