-
-
Notifications
You must be signed in to change notification settings - Fork 183
Description
Is your feature request related to a problem? Please describe.
As it stands now using laravel-imap I am using the laravel scheduler to look for new messages every minute. This works fine, however it requires additional setup and introduces up to 60 seconds extra latency when not really needed.
Describe the solution you'd like
Modern mail daemons pretty much all support the IDLE command to let the client leave the TCP connection open and be notified in real time of any new messages.
Describe alternatives you've considered
I guess increasing the polling interval into seconds would reduce the latency too, not really practical though.
Additional context
https://en.wikipedia.org/wiki/IMAP_IDLE
https://www.limilabs.com/blog/imap-idle
https://tools.ietf.org/html/rfc2177