quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

test897 (1356B)


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