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).