1*6236dae4SAndroid Build Coastguard Worker<testcase> 2*6236dae4SAndroid Build Coastguard Worker<info> 3*6236dae4SAndroid Build Coastguard Worker<keywords> 4*6236dae4SAndroid Build Coastguard WorkerSMTP 5*6236dae4SAndroid Build Coastguard WorkerMULTIPART 6*6236dae4SAndroid Build Coastguard Worker</keywords> 7*6236dae4SAndroid Build Coastguard Worker</info> 8*6236dae4SAndroid Build Coastguard Worker 9*6236dae4SAndroid Build Coastguard Worker# 10*6236dae4SAndroid Build Coastguard Worker# Server-side 11*6236dae4SAndroid Build Coastguard Worker<reply> 12*6236dae4SAndroid Build Coastguard Worker</reply> 13*6236dae4SAndroid Build Coastguard Worker 14*6236dae4SAndroid Build Coastguard Worker# 15*6236dae4SAndroid Build Coastguard Worker# Client-side 16*6236dae4SAndroid Build Coastguard Worker<client> 17*6236dae4SAndroid Build Coastguard Worker<features> 18*6236dae4SAndroid Build Coastguard WorkerMime 19*6236dae4SAndroid Build Coastguard Worker</features> 20*6236dae4SAndroid Build Coastguard Worker<server> 21*6236dae4SAndroid Build Coastguard Workersmtp 22*6236dae4SAndroid Build Coastguard Worker</server> 23*6236dae4SAndroid Build Coastguard Worker<name> 24*6236dae4SAndroid Build Coastguard WorkerSMTP multipart with transfer content encoders 25*6236dae4SAndroid Build Coastguard Worker</name> 26*6236dae4SAndroid Build Coastguard Worker<stdin> 27*6236dae4SAndroid Build Coastguard WorkerFrom: different 28*6236dae4SAndroid Build Coastguard WorkerTo: another 29*6236dae4SAndroid Build Coastguard Worker 30*6236dae4SAndroid Build Coastguard Workerbody 31*6236dae4SAndroid Build Coastguard Worker</stdin> 32*6236dae4SAndroid Build Coastguard Worker<command> 33*6236dae4SAndroid Build Coastguard Workersmtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt [email protected] --mail-from [email protected] -F '=This is the email inline text with a very long line containing the special character = and that should be split by encoder.;headers=Content-disposition: "inline";encoder=quoted-printable' -F "=@%LOGDIR/test%TESTNUMBER.txt;encoder=base64" -H "From: different" -H "To: another" 34*6236dae4SAndroid Build Coastguard Worker</command> 35*6236dae4SAndroid Build Coastguard Worker<file name="%LOGDIR/test%TESTNUMBER.txt"> 36*6236dae4SAndroid Build Coastguard WorkerThis is an attached file. 37*6236dae4SAndroid Build Coastguard Worker 38*6236dae4SAndroid Build Coastguard WorkerIt may contain any type of data and will be encoded in base64 for transfer. 39*6236dae4SAndroid Build Coastguard Worker</file> 40*6236dae4SAndroid Build Coastguard Worker</client> 41*6236dae4SAndroid Build Coastguard Worker 42*6236dae4SAndroid Build Coastguard Worker# 43*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot" 44*6236dae4SAndroid Build Coastguard Worker<verify> 45*6236dae4SAndroid Build Coastguard Worker<strippart> 46*6236dae4SAndroid Build Coastguard Workers/^--------------------------[A-Za-z0-9]*/------------------------------/ 47*6236dae4SAndroid Build Coastguard Workers/boundary=------------------------[A-Za-z0-9]*/boundary=----------------------------/ 48*6236dae4SAndroid Build Coastguard Worker</strippart> 49*6236dae4SAndroid Build Coastguard Worker<protocol> 50*6236dae4SAndroid Build Coastguard WorkerEHLO %TESTNUMBER 51*6236dae4SAndroid Build Coastguard WorkerMAIL FROM:<[email protected]> 52*6236dae4SAndroid Build Coastguard WorkerRCPT TO:<[email protected]> 53*6236dae4SAndroid Build Coastguard WorkerDATA 54*6236dae4SAndroid Build Coastguard WorkerQUIT 55*6236dae4SAndroid Build Coastguard Worker</protocol> 56*6236dae4SAndroid Build Coastguard Worker<upload> 57*6236dae4SAndroid Build Coastguard WorkerContent-Type: multipart/mixed; boundary=---------------------------- 58*6236dae4SAndroid Build Coastguard WorkerMime-Version: 1.0 59*6236dae4SAndroid Build Coastguard WorkerFrom: different 60*6236dae4SAndroid Build Coastguard WorkerTo: another 61*6236dae4SAndroid Build Coastguard Worker 62*6236dae4SAndroid Build Coastguard Worker------------------------------ 63*6236dae4SAndroid Build Coastguard WorkerContent-Transfer-Encoding: quoted-printable 64*6236dae4SAndroid Build Coastguard WorkerContent-disposition: "inline" 65*6236dae4SAndroid Build Coastguard Worker 66*6236dae4SAndroid Build Coastguard WorkerThis is the email inline text with a very long line containing the special = 67*6236dae4SAndroid Build Coastguard Workercharacter =3D and that should be split by encoder. 68*6236dae4SAndroid Build Coastguard Worker------------------------------ 69*6236dae4SAndroid Build Coastguard WorkerContent-Disposition: attachment; filename="test%TESTNUMBER.txt" 70*6236dae4SAndroid Build Coastguard WorkerContent-Transfer-Encoding: base64 71*6236dae4SAndroid Build Coastguard Worker 72*6236dae4SAndroid Build Coastguard WorkerVGhpcyBpcyBhbiBhdHRhY2hlZCBmaWxlLgoKSXQgbWF5IGNvbnRhaW4gYW55IHR5cGUgb2YgZGF0 73*6236dae4SAndroid Build Coastguard WorkerYSBhbmQgd2lsbCBiZSBlbmNvZGVkIGluIGJhc2U2NCBmb3IgdHJhbnNmZXIuCg== 74*6236dae4SAndroid Build Coastguard Worker-------------------------------- 75*6236dae4SAndroid Build Coastguard Worker. 76*6236dae4SAndroid Build Coastguard Worker</upload> 77*6236dae4SAndroid Build Coastguard Worker</verify> 78*6236dae4SAndroid Build Coastguard Worker</testcase> 79