note 93855 added to function.imap-fetchbody

From: Date: Sat, 03 Oct 2009 18:32:11 +0000
Subject: note 93855 added to function.imap-fetchbody
Groups: php.notes 
Request: Send a blank email to php-notes+get-161252@lists.php.net to get a copy of this message
The previous post contains a copy/paste error and a little added complexity. The first function should look like this: <?php function create_part_array($struct) { if (sizeof($struct->parts) > 0) { // There some sub parts foreach ($struct->parts as $count => $part) { add_part_to_array($part, ($count+1), $part_array); } }else{ // Email does not have a seperate mime attachment for text $part_array[] = array('part_number' => '1', 'part_object' => $struct); } return $part_array; } ?> ---- Server IP: 209.41.74.194 Probable Submitter: 76.205.170.42 ---- Manual Page -- http://www.php.net/manual/en/function.imap-fetchbody.php Edit -- https://master.php.net/note/edit/93855 Del: integrated -- https://master.php.net/note/delete/93855/integrated Del: useless -- https://master.php.net/note/delete/93855/useless Del: bad code -- https://master.php.net/note/delete/93855/bad+code Del: spam -- https://master.php.net/note/delete/93855/spam Del: non-english -- https://master.php.net/note/delete/93855/non-english Del: in docs -- https://master.php.net/note/delete/93855/in+docs Del: other reasons-- https://master.php.net/note/delete/93855 Reject -- https://master.php.net/note/reject/93855 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#161252) next »