passami il codice se puoi
tanto io devo scaricare solo gli attach di uan determinata email
per l'attach dovrebbe andare bene questo
Codice PHP:
function getAttachments($mbox,$msgNum){
$structure = imap_fetchstructure($mbox,$msgNum);
$contentParts = count($structure->parts);
if($contentParts > 1){
for($i=1; $i<=$contentParts; $i++){
if($structure->parts[$i]->type > 0){
$attachments .= $structure->parts[$i]->description;
}
}
}
return $attachments;
}