Hi,
I had the same problem, and I solved it with the imap command
FETCH BODYSTRUCTURE
There you get the headers of all parts of a mail (or of specific parts
if you set more parameters to the request). You can also request
headers of many mails by one request.
The only "problem" is to parse that result, because it looks like
* 2 FETCH (BODYSTRUCTURE ((("TEXT" "PLAIN" ("charset" "us-ascii") NIL
NIL "7BIT" 1120 1) ("TEXT" "HTML" ("charset" "us-ascii") NIL NIL
"QUOTED-PRINTABLE" 3874 1)
Michael
----------------------------------------
http://www.phpgangsta.de
On Feb 10, 2010, at 2:06 PM, Jens Wabnitz wrote:
Hello,
i'm building an application with mail reading
capabilities using Zend_Mail_Storage_Imap.
It seems that the RecursiveIterator for Messages and even the
countParts
Method fetch the whole content of the parts.
For mails with larger attachments calling these functions leads to a
"Fatal error: Allowed memory size of 67108864 bytes exhausted ...".
Is there any way to get the headers of message parts without
fetching the content?
Thanks in advance
Jens