Can I prevent IMAP from grabbing files over X mb using PHP?
Posted
by mike
on Stack Overflow
See other posts from Stack Overflow
or by mike
Published on 2010-04-22T22:04:38Z
Indexed on
2010/04/22
22:13 UTC
Read the original article
Hit count: 156
I'm building a little script that will connect to an IMAP account and grab the content of the email and also the attachments. It works well for the most part, but when a really large file comes in, it causes the script to time out. Is there any way that I can check the file size before trying to grab it? I think that would be the simplest solution. Otherwise, I may have to upgrade to a server that has more memory.
© Stack Overflow or respective owner