in reply to Re: IMAP IDLE Support
in thread IMAP IDLE Support

My most sincere apologies. I probably should have made my message a little more verbose.

I did, of course, search CPAN which returns two hits. IMAP::Client specifically mentions that it does not support idle. Mail::IMAPClient supports the IDLE/DONE commands but I can't find anything in the docs to explain how to actually make use of it. Idle is not really useful unless there is some way to trigger a callback when the server notifies that new messages are available. As far as I can tell Mail::IMAPClient does not support this. If I missed something, I will apologize once again.

Replies are listed 'Best First'.
Re^3: IMAP IDLE Support
by robinbowes (Beadle) on Jun 09, 2009 at 07:10 UTC

    18-months later, and I'm in the same boat as stu42j.

    I've searched and found Mail::IMAPClient, and also this node.

    But, I too can't find anything in the docs that explains how to use the IDLE/DONE commands. There seems to be no way to trap any new message notification from the server when in an idle state.

    Anyone got any ideas?

    R.

      If you are still looking for the answer just check in the test file: http://cpansearch.perl.org/src/MARKOV/Mail-IMAPClient-3.16/t/basic.t Down near the bottom you see the test for idle.