113498266Sopenharmony_ci<testcase>
213498266Sopenharmony_ci<info>
313498266Sopenharmony_ci<keywords>
413498266Sopenharmony_ciSMTP
513498266Sopenharmony_ciMULTIPART
613498266Sopenharmony_ci</keywords>
713498266Sopenharmony_ci</info>
813498266Sopenharmony_ci
913498266Sopenharmony_ci#
1013498266Sopenharmony_ci# Server-side
1113498266Sopenharmony_ci<reply>
1213498266Sopenharmony_ci</reply>
1313498266Sopenharmony_ci
1413498266Sopenharmony_ci#
1513498266Sopenharmony_ci# Client-side
1613498266Sopenharmony_ci<client>
1713498266Sopenharmony_ci<features>
1813498266Sopenharmony_ciMime
1913498266Sopenharmony_ci</features>
2013498266Sopenharmony_ci<server>
2113498266Sopenharmony_cismtp
2213498266Sopenharmony_ci</server>
2313498266Sopenharmony_ci<name>
2413498266Sopenharmony_ciSMTP multipart using mime API
2513498266Sopenharmony_ci</name>
2613498266Sopenharmony_ci<stdin>
2713498266Sopenharmony_ciFrom: different
2813498266Sopenharmony_ciTo: another
2913498266Sopenharmony_ci
3013498266Sopenharmony_cibody
3113498266Sopenharmony_ci</stdin>
3213498266Sopenharmony_ci<command>
3313498266Sopenharmony_cismtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -F "=(;type=multipart/alternative" -F "= <body>This is the html version</body>;headers=X-test1: this is a header;type=text/html;headers=X-test2: this is another header " -F "=This is the plain text version;headers=@%LOGDIR/headers%TESTNUMBER" -F "=)" -F "=@%LOGDIR/test%TESTNUMBER.txt;headers=<%LOGDIR/headers%TESTNUMBER" -H "From: different" -H "To: another" -H "Reply-To: <followup@example.com>"
3413498266Sopenharmony_ci</command>
3513498266Sopenharmony_ci<file1 name="%LOGDIR/test%TESTNUMBER.txt">
3613498266Sopenharmony_ciThis is an attached file.
3713498266Sopenharmony_ci
3813498266Sopenharmony_ciIt may contain any type of data.
3913498266Sopenharmony_ci</file1>
4013498266Sopenharmony_ci<file2 name="%LOGDIR/headers%TESTNUMBER">
4113498266Sopenharmony_ci# This line is a comment
4213498266Sopenharmony_ciX-fileheader1: This is a header from a file 
4313498266Sopenharmony_ci
4413498266Sopenharmony_ci# This line is another comment. It precedes a folded header.
4513498266Sopenharmony_ciX-fileheader2: This is 
4613498266Sopenharmony_ci#a
4713498266Sopenharmony_ci folded header
4813498266Sopenharmony_ci</file2>
4913498266Sopenharmony_ci</client>
5013498266Sopenharmony_ci
5113498266Sopenharmony_ci#
5213498266Sopenharmony_ci# Verify data after the test has been "shot"
5313498266Sopenharmony_ci<verify>
5413498266Sopenharmony_ci<strippart>
5513498266Sopenharmony_cis/^--------------------------[A-Za-z0-9]*/------------------------------/
5613498266Sopenharmony_cis/boundary=------------------------[A-Za-z0-9]*/boundary=----------------------------/
5713498266Sopenharmony_ci</strippart>
5813498266Sopenharmony_ci<protocol>
5913498266Sopenharmony_ciEHLO %TESTNUMBER
6013498266Sopenharmony_ciMAIL FROM:<sender@example.com>
6113498266Sopenharmony_ciRCPT TO:<recipient@example.com>
6213498266Sopenharmony_ciDATA
6313498266Sopenharmony_ciQUIT
6413498266Sopenharmony_ci</protocol>
6513498266Sopenharmony_ci<upload>
6613498266Sopenharmony_ciContent-Type: multipart/mixed; boundary=----------------------------
6713498266Sopenharmony_ciMime-Version: 1.0
6813498266Sopenharmony_ciFrom: different
6913498266Sopenharmony_ciTo: another
7013498266Sopenharmony_ciReply-To: <followup@example.com>
7113498266Sopenharmony_ci
7213498266Sopenharmony_ci------------------------------
7313498266Sopenharmony_ciContent-Type: multipart/alternative; boundary=----------------------------
7413498266Sopenharmony_ci
7513498266Sopenharmony_ci------------------------------
7613498266Sopenharmony_ciContent-Type: text/html
7713498266Sopenharmony_ciContent-Transfer-Encoding: 8bit
7813498266Sopenharmony_ciX-test1: this is a header
7913498266Sopenharmony_ciX-test2: this is another header
8013498266Sopenharmony_ci
8113498266Sopenharmony_ci<body>This is the html version</body>
8213498266Sopenharmony_ci------------------------------
8313498266Sopenharmony_ciX-fileheader1: This is a header from a file
8413498266Sopenharmony_ciX-fileheader2: This is #a folded header
8513498266Sopenharmony_ci
8613498266Sopenharmony_ciThis is the plain text version
8713498266Sopenharmony_ci--------------------------------
8813498266Sopenharmony_ci
8913498266Sopenharmony_ci------------------------------
9013498266Sopenharmony_ciContent-Disposition: attachment; filename="test%TESTNUMBER.txt"
9113498266Sopenharmony_ciX-fileheader1: This is a header from a file
9213498266Sopenharmony_ciX-fileheader2: This is #a folded header
9313498266Sopenharmony_ci
9413498266Sopenharmony_ciThis is an attached file.
9513498266Sopenharmony_ci
9613498266Sopenharmony_ciIt may contain any type of data.
9713498266Sopenharmony_ci
9813498266Sopenharmony_ci--------------------------------
9913498266Sopenharmony_ci.
10013498266Sopenharmony_ci</upload>
10113498266Sopenharmony_ci</verify>
102</testcase>
103