Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Setting mail.imap.* and mail.imaps.* properties?

843834Jul 28 2008 — edited Jul 28 2008
In our application, both IMAP and IMAPS can be used (depending on customer setup). In our application we set some housekeeping properties for javamail (like mail.imap.connectiontimeout).

Now I am wondering, do we only need to set the property for mail.imap (and is it then used by the 'imap' and 'imaps' provider), like this:
props.setProperty("mail.imap.connectiontimeout", SOCKET_TIME_OUT_MILISECONDS);
or do we need to set this property both for mail.imap and mail.imaps?, like this:
props.setProperty("mail.imap.connectiontimeout", SOCKET_TIME_OUT_MILISECONDS);
props.setProperty("mail.imaps.connectiontimeout", SOCKET_TIME_OUT_MILISECONDS);
I have been checking the documentation, but as far as I can see no where is explicitly mentioned if most (all) mail.imap.* properties are shared with the IMAPS provider, or even if there is a mail.imaps.* equivalent (I only know there is explicitly for mail.imaps.socketFactory.class and mail.imaps.socketFactory.fallback).
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 25 2008
Added on Jul 28 2008
2 comments
412 views