summaryrefslogtreecommitdiffstats
path: root/kmail/sievedebugdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/sievedebugdialog.cpp')
-rw-r--r--kmail/sievedebugdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kmail/sievedebugdialog.cpp b/kmail/sievedebugdialog.cpp
index 09d7d3fa1..c30c0f9bf 100644
--- a/kmail/sievedebugdialog.cpp
+++ b/kmail/sievedebugdialog.cpp
@@ -235,11 +235,11 @@ static KURL urlFromAccount( const KMail::ImapAccountBase * a ) {
// Translate IMAP LOGIN to PLAIN:
u.addQueryItem( "x-mech", a->auth() == "*" ? "PLAIN" : a->auth() );
- if ( !a->useSSL() && !a->useTLS() )
+ if ( !a->useSTARTTLS() && !a->useTLS() )
u.addQueryItem( "x-allow-unencrypted", "true" );
} else {
u = sieve.alternateURL();
- if ( u.protocol().lower() == "sieve" && !a->useSSL() && !a->useTLS() && u.queryItem("x-allow-unencrypted").isEmpty() )
+ if ( u.protocol().lower() == "sieve" && !a->useSTARTTLS() && !a->useTLS() && u.queryItem("x-allow-unencrypted").isEmpty() )
u.addQueryItem( "x-allow-unencrypted", "true" );
}
return u;