imap - get attached file
How do I get the attached file from this email? This email is sent from an apple computer and the email struture is not like any other (surprise).. here the part with the disposition is one dimension deeper than else.. The script works with every other email where the part with the file is in the first dimension, but not with this one $part->dparameters[0]->value returns the file name, but strlen($data) returns 0 imap stream $structure = imap_fetchstructure($this->stream, $this->msgno); if(isset($structure->parts)){ print_r($structure->parts); $this->parse_parts($structure->parts); } function