quickjs-tart

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

test647 (2009B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 IMAP
      5 APPEND
      6 UPLOAD
      7 MULTIPART
      8 </keywords>
      9 </info>
     10 
     11 #
     12 # Server-side
     13 <reply>
     14 </reply>
     15 
     16 #
     17 # Client-side
     18 <client>
     19 <features>
     20 Mime
     21 </features>
     22 <server>
     23 imap
     24 </server>
     25 <name>
     26 IMAP APPEND multipart using mime API
     27 </name>
     28 <command>
     29 imap://%HOSTIP:%IMAPPORT/%TESTNUMBER -F "=(;type=multipart/alternative" -F "= <body>This is the html version</body>;type=text/html" -F "=This is the plain text version" -F "=)" -F "=@%LOGDIR/test%TESTNUMBER.txt" -H "Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)" -H "From: Fred Foobar <foobar@example.com>" -H "To: joe@example.com" -H "Message-Id: <B27397-0100000@example.com>" -H "Subject: afternoon meeting" -u user:secret
     30 </command>
     31 <file name="%LOGDIR/test%TESTNUMBER.txt">
     32 This is an attached file.
     33 
     34 It may contain any type of data.
     35 </file>
     36 </client>
     37 
     38 #
     39 # Verify data after the test has been "shot"
     40 <verify>
     41 <strippart>
     42 s/^--------------------------[A-Za-z0-9]*/------------------------------/
     43 s/boundary=------------------------[A-Za-z0-9]*/boundary=----------------------------/
     44 </strippart>
     45 <protocol>
     46 A001 CAPABILITY
     47 A002 LOGIN user secret
     48 A003 APPEND %TESTNUMBER (\Seen) {940}
     49 A004 LOGOUT
     50 </protocol>
     51 <upload>
     52 Content-Type: multipart/mixed; boundary=----------------------------
     53 Mime-Version: 1.0
     54 Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)
     55 From: Fred Foobar <foobar@example.com>
     56 To: joe@example.com
     57 Message-Id: <B27397-0100000@example.com>
     58 Subject: afternoon meeting
     59 
     60 ------------------------------
     61 Content-Type: multipart/alternative; boundary=----------------------------
     62 
     63 ------------------------------
     64 Content-Type: text/html
     65 Content-Transfer-Encoding: 8bit
     66 
     67 <body>This is the html version</body>
     68 ------------------------------
     69 
     70 This is the plain text version
     71 --------------------------------
     72 
     73 ------------------------------
     74 Content-Disposition: attachment; filename="test%TESTNUMBER.txt"
     75 
     76 This is an attached file.
     77 
     78 It may contain any type of data.
     79 
     80 --------------------------------
     81 </upload>
     82 </verify>
     83 </testcase>