note 17840 added to function.imap-fetchstructure
| From: | ac at artcenter dot ac | Date: | Fri, 28 Dec 2001 08:24:22 +0000 |
| Subject: | note 17840 added to function.imap-fetchstructure | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-23904@lists.php.net to get a copy of this message | ||
parameters, parts are objects that have a lot of great information about different parts of the
message. For example if your message is written in both text/plain and text/html formats then parts
will contain 2 objects and most likely will have this hierarchy, i used print_r to read whats inside
the object, print_r function helped quite a bit and i recommend on using it, this is what it printed
when i "print_r ($msg_struct->parts);". A lot of useful info which isnt documented in
this function:
Array ( [0] => stdClass Object ( [encoding] => 4 [ifsubtype] => 1 [subtype] => PLAIN
[ifdescription] => 0 [ifid] => 0 [lines] => 1 [bytes] => 23 [ifdisposition] => 0
[ifdparameters] => 0 [ifparameters] => 1 [parameters] => Array ( [0] => stdClass Object
( [attribute] => CHARSET [value] => iso-8859-1 ) ) ) [1] => stdClass Object ( [encoding]
=> 4 [ifsubtype] => 1 [subtype] => HTML [ifdescription] => 0 [ifid] => 0 [lines]
=> 11 [bytes] => 414 [ifdisposition] => 0 [ifdparameters] => 0 [ifparameters] => 1
[parameters] => Array ( [0] => stdClass Object ( [attribute] => CHARSET [value] =>
iso-8859-1 ) ) ) )
--
http://www.php.net/manual/en/function.imap-fetchstructure.php
http://master.php.net/manage/user-notes.php?action=edit+17840
http://master.php.net/manage/user-notes.php?action=delete+17840
http://master.php.net/manage/user-notes.php?action=reject+17840