I have a small web app which polls an IMAP mailbox (via PHP's imap module) every minute via a cronjob. I'd like to make this more realtime, as the maximum 1 minute lag is unacceptable in some cases.
Is there a service out there that will connect to an IMAP mailbox, use IMAP IDLE to constantly monitor for messages, then POST exhaustive message data (headers, content) to a URL? Sort of like Twilio does with incoming phone calls?