PHP code$mine_mail =
Array ( [1] => stdClass Object ( [headers] => Array ( [content-type] => text/plain;charset="utf-8" ) [ctype_primary] => text [ctype_secondary] => plain [ctype_parameters] => Array ( [charset] => utf-8 ) [body] => vif5f+CM/R6Ej4pA3eq7wsRbp/0Irr4GDeqB92pDvW+PSo/lPdFmSvtae4vVFzdb0p64aXra0yH8H4RhY9CScEBzJ+/GpNmzmq8x2IMNRiqannBk5mBaB8zcNA96IQ1oLbwIQLZraCip7IIo3oT1j0uZ/YspW4SSWB4NfOr+554= [mime_id] => 1 ) [2] => stdClass Object ( [headers] => Array ( [x-attach-l] => 1 [content-type] => application/msword;name="netchina_1 ReleasedBy_sean(Data_2012-2-21).doc"; [content-transfer-encoding] => base64 [content-disposition] => attachment;filename="netchina_1 ReleasedBy_sean(Data_2012-2-21).doc" ) [ctype_primary] => application [ctype_secondary] => msword [ctype_parameters] => Array ( [name] => netchina_1 ReleasedBy_sean(Data_2012-2-21).doc ) [disposition] => attachment [d_parameters] => Array ( [filename] => netchina_1 ReleasedBy_sean(Data_2012-2-21).doc ) [body] => sasds)
$body = $mine_mail[1]->body;
$encoding = $mine_mail[1]->ctype_parameters['charset'];
$filename = $mine_mail[2]->ctype_parameters['name'];