Closed wmertens closed 3 years ago
@wmertens
Thanks for your suggestion !! Please let us know how we can achieve this or you can create a pull request for the same.
Unfortunately my PHP is way too weak to implement this, but the php_imap library should hopefully have some way to stay connected and get a callback on new email?
I discovered that php_imap doesn't support IMAP IDLE, but https://github.com/Webklex/php-imap does.
@wmertens
Sorry to say but IMAP IDLE supported by some IMAP servers.
As every one knows this project is opensource & we can't restrict anything here.
Instead of having to run the import all the time, it would be better to use the IMAP protocol to get notified when new emails arrive.
This has many advantages, such as low resource use and instant ticket creation.