note 24972 added to function.imap-fetchstructure

From: Date: Fri, 06 Sep 2002 11:30:26 +0000
Subject: note 24972 added to function.imap-fetchstructure
Groups: php.notes 
Request: Send a blank email to php-notes+get-36238@lists.php.net to get a copy of this message
> $msg_structure = imap_fetchstructure($mail_inbox, $msg_id); > if($msg_structure->bytes == "") > Please, test this code and let me know is it > working properly or not! Thanks in advance Basically it works, but some mailers send in 'alternative'-mode, and therefore > if($msg_structure->bytes == "" && $msg_structure->subtype != > "ALTERNATIVE") works somewhat better to check for attachments.... -- http://www.php.net/manual/en/function.imap-fetchstructure.php http://master.php.net/manage/user-notes.php?action=edit+24972 http://master.php.net/manage/user-notes.php?action=delete+24972 http://master.php.net/manage/user-notes.php?action=reject+24972

« previous php.notes (#36238) next »