Hello everyone,
I use imap_sort() to go through POP3 accounts. However, sometimes, when the mailbox is too large, the response is incredibly slow.
I tried sniffing the network to discover the source of the problem and found that when imap_sort() is called for a POP3 server, it downloads the full body & attachs of ALL the messages in the mailbox. Since my POP server and my Web server are on differente machines, this caused the considerably slow response.
Does anyone know a workaround this? I've been developing a sort of custom_imap_sort() that connects to port 110 and download only the 50 first lines of the message through the POP command TOP, but doing it this way requires that I authenticate all over again. Can I access the TCP stream contained in the imap resource?