test897 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <testcase>
  2. <info>
  3. <keywords>
  4. IMAP
  5. Clear Text
  6. FETCH
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data>
  13. body
  14. --
  15. yours sincerely
  16. </data>
  17. <servercmd>
  18. POSTFETCH extra stuff sent in the envelope after the body
  19. </servercmd>
  20. </reply>
  21. #
  22. # Client-side
  23. <client>
  24. <server>
  25. imap
  26. </server>
  27. <name>
  28. IMAP and envelope meta data after body transfer
  29. </name>
  30. <command>
  31. 'imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/;MAILINDEX=123/;SECTION=1' -u user:secret -D %LOGDIR/head-%TESTNUMBER
  32. </command>
  33. </client>
  34. #
  35. # Verify data after the test has been "shot"
  36. <verify>
  37. <protocol>
  38. A001 CAPABILITY
  39. A002 LOGIN user secret
  40. A003 SELECT %TESTNUMBER
  41. A004 FETCH 123 BODY[1]
  42. A005 LOGOUT
  43. </protocol>
  44. <file name="%LOGDIR/head-%TESTNUMBER">
  45. _ _ ____ _
  46. ___| | | | _ \| |
  47. / __| | | | |_) | |
  48. | (__| |_| | _ {| |___
  49. \___|\___/|_| \_\_____|
  50. * OK curl IMAP server ready to serve
  51. A001 BAD Command
  52. A002 OK LOGIN completed
  53. * 172 EXISTS
  54. * 1 RECENT
  55. * OK [UNSEEN 12] Message 12 is first unseen
  56. * OK [UIDVALIDITY 3857529045] UIDs valid
  57. * OK [UIDNEXT 4392] Predicted next UID
  58. * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
  59. * OK [PERMANENTFLAGS (\Deleted \Seen \*)] Limited
  60. A003 OK [READ-WRITE] SELECT completed
  61. * 123 FETCH (BODY[1] {31}
  62. extra stuff sent in the envelope after the body)
  63. A004 OK FETCH completed
  64. </file>
  65. </verify>
  66. </testcase>