Mega Code Archive
Search Mime Email Structure
imap_searchstruct
imap_searchstruct -- Search the structure of a mime email message for a query string and return an array of the mime-parts that match all the criteria.
Description
array imap_searchstruct ( array struct, string query )
This will search the structure of a mail message as returned by the function imap_fetchstructure, and return an array of the parts that match all the query arguments. The returned array of parts are intended for use in imap_fetchbody function.
Example 1. imap_searchstruct() example