ImapClient.selectFolder Method Reaches Timeout

Hi,
SSL_FACTORY = “javax.net.ssl.SSLSocketFactory”

java version: 1.7.0_72

@elie.kach,
Thank you for the additional information. I passed it to our development team. We will inform you of any progress.

@elie.kach,
Our developers have reproduced the issue with TLSv1. You use old OpenJDK version 1.7 on a Linux machine. All JavaMail APIs from 1.4 to 1.6.2 use the default Java TLS version as we use in our API if the TLS version is not set directly.

  1. Please clarify your version of JavaMail.

  2. Please use the next code line
    System.setProperty("javax.net.debug","all");
    and share your JavaMail work logs (without Aspose.Email).

  3. TLS version can be set in two ways.
    In code:
    props.put("mail.imaps.ssl.protocols", "TLSv1.2");
    In Java args:
    -Dmail.imaps.ssl.protocols="TLSv1.2"
    Perhaps, this option is set in your application. Please check it carefully.