summaryrefslogtreecommitdiffstats
path: root/kmail/managesievescriptsdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/managesievescriptsdialog.cpp')
-rw-r--r--kmail/managesievescriptsdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kmail/managesievescriptsdialog.cpp b/kmail/managesievescriptsdialog.cpp
index bd8d99558..2ea4e5651 100644
--- a/kmail/managesievescriptsdialog.cpp
+++ b/kmail/managesievescriptsdialog.cpp
@@ -84,12 +84,12 @@ static KURL findUrlForAccount( const KMail::ImapAccountBase * a ) {
u.setPort( sieve.port() );
// 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" );
return u;
} else {
KURL 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;
}