|
Reza Maghsoudi - 2009-11-02 10:16:16
Thanks for the class, I'm using both test_pop3.php and parse_message.php but I have a problem with parse_message.
I'm using the same information for both but the parse_message does not work when I'm using for gmail but the test_pop3 list all emails there the error I'm getting is:
MIME message decoding error: could not open the message file to decode pop3://**********@gmail.com:*********@pop.gmail.com:995/1?tls=1&debug=1&html_debug=1
Thanks for support.
Regards,
Reza Maghsoudi
Manuel Lemos - 2009-11-02 17:45:33 - In reply to message 1 from Reza Maghsoudi
Maybe you cannot connect to the Gmail server from the server where PHP is running because port 995 is blocked in your firewall. In that case you need to check with your server administrator.
Reza Maghsoudi - 2009-11-04 13:08:43 - In reply to message 2 from Manuel Lemos
Dear Manuel,
Hi, thanks for reply I checked with hosting company and found out that they have blocked the 995.
Now I have another problem, I've checked with more than 1 MB emails (i.e 2, 3 MB) and using the method to save the plain/text, html and attachments in tmp folder but when trying to download attachments they were corrupted but attachments with less than 1 MB were downloaded successfully.
Thanks for your kind responses.
Best Regards,
Manuel Lemos - 2009-11-04 19:03:59 - In reply to message 3 from Reza Maghsoudi
Probably you are exceeding the PHP memory limit and that makes PHP execution abort.
In that case, just read and save to file message data in small chunks at a time.
Reza Maghsoudi - 2009-12-26 08:58:57 - In reply to message 4 from Manuel Lemos
Hi Manuel,
Thanks, attachment problems fixed but after long time I'm faced with a problem.
Actually I've used the pop3/mimeparser class in part of my application which allows people to add their pop3 account details (i.e the server name, username, password, tick for delete after download of not, ...)
But pepole do not like to tick for delete after download and wants to get their emails in their mail clients (i.e outlook, ...) too.
So my problem is that I have to read all people's emails which now increased to tons of emails and caused my cronjob to take long time to run and the server becomes slow when cronjob is running.
I'm saving the latest email's received by date/time and using this to download only new emails, I was thinking if there is any way to pass this to the pop3 server when connecting to it and force the pop3 server to only list new emails of each email account, so I don't need to list all emails of all email accounts and then check the date/time from header and decide if I have to download it or not.
This is going to be really a big problem to me. Thank you if you could help me.
Again thanks.
Reza Maghsoudi
|