Use STARTTLS for additional connections (thanks to Andrei).

This commit is contained in:
Vincent Richard 2010-05-04 10:49:10 +00:00
parent 371eda4134
commit 6fb89acf38

View File

@ -156,7 +156,7 @@ void IMAPConnection::connect()
const bool tlsRequired = HAS_PROPERTY(PROPERTY_CONNECTION_TLS_REQUIRED)
&& GET_PROPERTY(bool, PROPERTY_CONNECTION_TLS_REQUIRED);
if (!store->isSecuredConnection() && tls) // only if not IMAPS
if (!store->isIMAPS() && tls) // only if not IMAPS
{
try
{