
 Chitiga Georges - 2011-09-14 15:39:36
 
Hi,
First thing I want to say really nice job on this but I got a issue that I`m confronting for a week here.
So I am using mime_parser, pop3_stream and the script mailbox_browse.php.
Mailbox_browse is a a modified version but nothing in bad, added some queries, some verifications, etc. 
I am currently using php 5.2.13, when I run the script and send a email with a large text file >4MB everything works fine but when I send a JPG file larger then 2MB the program crashes and in the log file I see a segmentation fault.
So here it is what I tested:
- modifying fopen mode to "rb" to force binary mode didn't work(made the appropiate line in pop3.php in strcmp($mode, "rb").
- the messages are saved on disk but there are no permissions issues(all files 644 and folders 755)
- Sending big text files works, only large images files.
- There is no memory problems nor on the machine or in php.ini (set to 1024MB)
- No execution time problems too.
- smaller files work.
- It dies while decoding the attachment.
- I believe is from the pop_stream class but unsure of what modifications to do in order this to work
Any help on getting this to decode large jpg attachments will be a great. 
Thank you.