Hi You are welcome to try to implement this feature. We love contributions http://camel.apache.org/contributing.html
On Wed, Mar 17, 2010 at 5:35 PM, aronb <[email protected]> wrote: > > Yes, Java mail supports this. It does not appear to be implemented in Camel > mail though. It would be great to be able to use an event driven model when > integrating with an imap server. > > http://java.sun.com/products/javamail/javadocs/com/sun/mail/imap/IMAPStore.html#idle() > Java Mail API IDLE link > > "Use the IMAP IDLE command (see RFC 2177), if supported by the server, to > enter idle mode so that the server can send unsolicited notifications > without the need for the client to constantly poll the server. Use a > ConnectionListener to be notified of events. When another thread (e.g., the > listener thread) needs to issue an IMAP comand for this Store, the idle mode > will be terminated and this method will return. Typically the caller will > invoke this method in a loop." > > > Claus Ibsen-2 wrote: >> >> Hi >> >> Can you explain a bit more about this? I haven't heard about >> persistent imap connections before. >> >> Camel uses the Javax Mail API, so if it go support for that feature, >> then it may be possible to do. >> I recon you need to google a bit to find examples how to do this with >> Java Mail. Then we can see >> if there is a gap to fill in the Camel Mail component to make it easier to >> do. >> >> >> On Wed, Mar 17, 2010 at 6:44 AM, aronb <[email protected]> wrote: >>> >>> Does camel mail support persistent imap connections? If so would you >>> please >>> post a code example. >>> -- >>> View this message in context: >>> http://old.nabble.com/Persistent-imap-connections--tp27927989p27927989.html >>> Sent from the Camel - Users mailing list archive at Nabble.com. >>> >>> >> >> >> >> -- >> Claus Ibsen >> Apache Camel Committer >> >> Author of Camel in Action: http://www.manning.com/ibsen/ >> Open Source Integration: http://fusesource.com >> Blog: http://davsclaus.blogspot.com/ >> Twitter: http://twitter.com/davsclaus >> >> > > -- > View this message in context: > http://old.nabble.com/Persistent-imap-connections--tp27927989p27933698.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
