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