I developed a CRM that is used with a marketing site similar to manta.com. CRM has a built-in email client. This basically corresponds to the names and emails for the addresses in the file, and if the letter is from the client, it downloads the account information next to the email.
The whole system works, but in some cases is slow. Since each "region" of the country is managed by a different company, the software connects to several mail servers, all of which behave differently.
In some cases (mainly with godaddy servers) it takes a lot of time to send email. It will also take a long time to download the Inbox if they have many messages (500+), even if they are downloaded.
I use the Mail :: Factory smtp pear to send and the imap imp built-in functions to receive.
I think of outgoing messages. I will just store the emails in db, and then send it a cron script, after which they will be able to send emails and go right away.
Does anyone have any ideas / concepts for handling large mailboxes via IMAP and php? I will not control the mail servers, but I have full control over the server on which CRM is installed.
I'm not looking for code, just a clue if you have one.
This is Linux (ubuntu), apache, mysql, php. If necessary, I can use Zend.