note 36816 added to function.imap-fetchstructure
| From: | chrislhill at rn2 dot php dot net | Date: | Thu, 23 Oct 2003 15:36:49 +0000 |
| Subject: | note 36816 added to function.imap-fetchstructure | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-59171@lists.php.net to get a copy of this message | ||
For people just beging this may help alot as I spent a couple hours just trying to relize how exact
the array was stored. (at the time I did not know the print_r function :P)
$struct = imap_fetchstructure($mbox, $msgnumber);
print_r($struct);
Will give you a better example for your messages but they are called as $struct using the varible
method above.
$struct->type; //would return the type
$struct->encoding //would return the encoding
and etc..
This can be done many different ways but that is the basics on pulling the info out of the structure
of fetchstructure itself, I hope it helps someone starting because it wouldve helped me :/.
----
Manual Page -- http://www.php.net/manual/en/function.imap-fetchstructure.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+36816
Delete -- http://master.php.net/manage/user-notes.php?action=delete+36816&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+36816&report=yes
Search -- http://master.php.net/manage/user-notes.php