test981 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <testcase>
  2. <info>
  3. <keywords>
  4. IMAP
  5. STARTTLS
  6. </keywords>
  7. </info>
  8. #
  9. # Server-side
  10. <reply>
  11. <servercmd>
  12. CAPA STARTTLS
  13. REPLY STARTTLS A002 BAD currently unavailable\r\nA003 OK Authenticated\r\nA004 OK Accepted
  14. REPLY LOGIN A003 BAD Authentication credentials invalid
  15. </servercmd>
  16. </reply>
  17. #
  18. # Client-side
  19. <client>
  20. <features>
  21. SSL
  22. </features>
  23. <server>
  24. imap
  25. </server>
  26. <name>
  27. IMAP STARTTLS pipelined server response
  28. </name>
  29. <command>
  30. imap://%HOSTIP:%IMAPPORT/%TESTNUMBER -T log/upload%TESTNUMBER -u user:secret --ssl
  31. </command>
  32. <file name="log/upload%TESTNUMBER">
  33. Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)
  34. From: Fred Foobar <foobar@example.COM>
  35. Subject: afternoon meeting
  36. To: joe@example.com
  37. Message-Id: <B27397-0100000@example.COM>
  38. MIME-Version: 1.0
  39. Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
  40. Hello Joe, do you think we can meet at 3:30 tomorrow?
  41. </file>
  42. </client>
  43. #
  44. # Verify data after the test has been "shot"
  45. <verify>
  46. # 8 is CURLE_WEIRD_SERVER_REPLY
  47. <errorcode>
  48. 8
  49. </errorcode>
  50. <protocol>
  51. A001 CAPABILITY
  52. A002 STARTTLS
  53. </protocol>
  54. </verify>
  55. </testcase>