Search code examples
javaemailimaphmail-server

Library for IMAP IDLE


I'm looking for a Java library that helps me using IMAP and preferably IDLE.

I need to write a Java application that is notified of and retrieves new email using SSL. The application will check the inbox of an account hosted by hMailServer.

So far I've looked at:

Apache Commons Imap but it doesn't seem to implement IDLE.

JavaPushMail but it is not sufficiently documented (I might be able to work it out but I'm not sure my successors will be as pleased).

Javamail, their IMAPFolder seems like a good choice but I'm short on time and writing a stable library for it will take time.

Chilkatsoft is a $199 library, it's a bit pricy (I know, free and good reliable code is always ease to come by :) Plus, I'm not sure it handles IDLE.

I could go for a solution that polls the inbox if it's documented and stable.

I'd appreciate some example code, a library or a push in the right direction.

Sorry for all the "I" and thanks in advance.


Solution

  • I went ahead and used Javamail. Just think it's strange no decent wrapper/client has been written for it yet. Well well, can't have it all. Thanks for the answer, Conor Sherman.