stu42j has asked for the wisdom of the Perl Monks concerning the following question:

Are there any Perl IMAP libraries that support IDLE?

Clarification: I am looking for something that can trigger a callback when the server indicates that new messages are available. I have searched CPAN and Mail::IMAPClient comes the closest but doesn't seem to support the callback.

Replies are listed 'Best First'.
Re: IMAP IDLE Support
by merlyn (Sage) on Nov 26, 2007 at 20:49 UTC
    A quick search to http://search.cpan.org with "IMAP" and "IDLE" in the search box tells you what you want to know: now, and forever. What happened when you tried that? Please try not to be lazy: it ruins this place for all of us.

      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.

        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.