2
0

test836 894 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <testcase>
  2. <info>
  3. <keywords>
  4. IMAP
  5. Clear Text
  6. FETCH
  7. connection re-use
  8. </keywords>
  9. </info>
  10. #
  11. # Server-side
  12. <reply>
  13. <servercmd>
  14. REPLY "LOGIN user.one secret" A002 OK LOGIN completed
  15. REPLY "LOGIN user.two secret" B002 OK LOGIN completed
  16. </servercmd>
  17. <data>
  18. From: me@somewhere
  19. To: fake@nowhere
  20. body
  21. --
  22. yours sincerely
  23. </data>
  24. </reply>
  25. #
  26. # Client-side
  27. <client>
  28. <server>
  29. imap
  30. </server>
  31. <name>
  32. IMAP multiple connection authentication
  33. </name>
  34. <command>
  35. 'imap://%HOSTIP:%IMAPPORT/836/;UID=1' -u user.one:secret -: 'imap://%HOSTIP:%IMAPPORT/836/;UID=2' -u user.two:secret
  36. </command>
  37. </client>
  38. #
  39. # Verify data after the test has been "shot"
  40. <verify>
  41. <protocol>
  42. A001 CAPABILITY
  43. A002 LOGIN user.one secret
  44. A003 SELECT 836
  45. A004 FETCH 1 BODY[]
  46. A005 LOGOUT
  47. B001 CAPABILITY
  48. B002 LOGIN user.two secret
  49. B003 SELECT 836
  50. B004 FETCH 2 BODY[]
  51. B005 LOGOUT
  52. </protocol>
  53. </verify>
  54. </testcase>