Re: [fw-general] Zend_Mail exhaust memory reading multipart mail with large attachment

2010-12-04 Thread Luiz A Brandao Jr
Hello Michael, Would you mind sharing the modifications you did to Zend_Mail_Store_Imap and Zend_Mail_Protocol_Imap? I also need to work with UIDs! Thank you, Luiz Brandao > > On 11 February 2010 06:03, Michael Kliewe wrote: >> Hello Jens, >> exactly, I extended both Zend_Mail_Storage_Imap an

Re: [fw-general] Zend_Mail exhaust memory reading multipart mail with large attachment

2010-12-04 Thread Luiz A Brandao Jr
Hello Michael, Would you mind sharing the modifications we did to Zend_Mail_Store_Imap and Zend_Mail_Protocol_Imap? I also need to work with UIDs! Thank you, Luiz Brandao On 11 February 2010 06:03, Michael Kliewe wrote: > Hello Jens, > exactly, I extended both Zend_Mail_Storage_Imap and Zend

Re: [fw-general] Zend_Mail exhaust memory reading multipart mail with large attachment

2010-02-12 Thread Jens Wabnitz
Hello Michael, due to timing restrictions i stay using the php imap functions. But i would also like to see the missing functions in the Zend Imap classes. Maybe we can build a two men task force to contribute it. But has at least to wait until i have finished my current project. Thanks for your

Re: [fw-general] Zend_Mail exhaust memory reading multipart mail with large attachment

2010-02-11 Thread Michael Kliewe
Hello Jens, exactly, I extended both Zend_Mail_Storage_Imap and Zend_Mail_Protocol_Imap because I need many functions that both classes don't provide, for example I work only with unique ids, not sequence numbers. So I had to change many of the functions. For example it is also not possib

Re: [fw-general] Zend_Mail exhaust memory reading multipart mail with large attachment

2010-02-10 Thread Jens Wabnitz
Hello Michael, thanks for the hint. How do you send the command to imap server? Tried to do it with the Zend_Mail_Protocol_Imap Instance but failed. Got the information with imap_fetchstructure() but only for the cost of another connection. Shouldn't the Imap classes be modified to lazy load cont

Re: [fw-general] Zend_Mail exhaust memory reading multipart mail with large attachment

2010-02-10 Thread Michael Kliewe
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

[fw-general] Zend_Mail exhaust memory reading multipart mail with large attachment

2010-02-10 Thread Jens Wabnitz
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: