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 file name escaping 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 mail text" -F '=File content;filename="strange\file\"name"' 34*6236dae4SAndroid Build Coastguard Worker</command> 35*6236dae4SAndroid Build Coastguard Worker</client> 36*6236dae4SAndroid Build Coastguard Worker 37*6236dae4SAndroid Build Coastguard Worker# 38*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot" 39*6236dae4SAndroid Build Coastguard Worker<verify> 40*6236dae4SAndroid Build Coastguard Worker<strippart> 41*6236dae4SAndroid Build Coastguard Workers/^--------------------------[A-Za-z0-9]*/------------------------------/ 42*6236dae4SAndroid Build Coastguard Workers/boundary=------------------------[A-Za-z0-9]*/boundary=----------------------------/ 43*6236dae4SAndroid Build Coastguard Worker</strippart> 44*6236dae4SAndroid Build Coastguard Worker<protocol> 45*6236dae4SAndroid Build Coastguard WorkerEHLO %TESTNUMBER 46*6236dae4SAndroid Build Coastguard WorkerMAIL FROM:<[email protected]> 47*6236dae4SAndroid Build Coastguard WorkerRCPT TO:<[email protected]> 48*6236dae4SAndroid Build Coastguard WorkerDATA 49*6236dae4SAndroid Build Coastguard WorkerQUIT 50*6236dae4SAndroid Build Coastguard Worker</protocol> 51*6236dae4SAndroid Build Coastguard Worker<upload> 52*6236dae4SAndroid Build Coastguard WorkerContent-Type: multipart/mixed; boundary=---------------------------- 53*6236dae4SAndroid Build Coastguard WorkerMime-Version: 1.0 54*6236dae4SAndroid Build Coastguard Worker 55*6236dae4SAndroid Build Coastguard Worker------------------------------ 56*6236dae4SAndroid Build Coastguard Worker 57*6236dae4SAndroid Build Coastguard WorkerThis is the mail text 58*6236dae4SAndroid Build Coastguard Worker------------------------------ 59*6236dae4SAndroid Build Coastguard WorkerContent-Disposition: attachment; filename="strange\\file\"name" 60*6236dae4SAndroid Build Coastguard Worker 61*6236dae4SAndroid Build Coastguard WorkerFile content 62*6236dae4SAndroid Build Coastguard Worker-------------------------------- 63*6236dae4SAndroid Build Coastguard Worker. 64*6236dae4SAndroid Build Coastguard Worker</upload> 65*6236dae4SAndroid Build Coastguard Worker</verify> 66*6236dae4SAndroid Build Coastguard Worker</testcase> 67