diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/imapresource/imapresource.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/imapresource/imapresource.cpp b/examples/imapresource/imapresource.cpp index cd3b69f..7ff4ea4 100644 --- a/examples/imapresource/imapresource.cpp +++ b/examples/imapresource/imapresource.cpp | |||
@@ -984,6 +984,12 @@ ImapResource::ImapResource(const ResourceContext &resourceContext) | |||
984 | port = list.at(1).toInt(); | 984 | port = list.at(1).toInt(); |
985 | } | 985 | } |
986 | 986 | ||
987 | //Backwards compatibilty | ||
988 | //For kolabnow we assumed that port 143 means starttls | ||
989 | if (encryption == Imap::Tls && port == 143) { | ||
990 | encryption = Imap::Starttls; | ||
991 | } | ||
992 | |||
987 | auto synchronizer = QSharedPointer<ImapSynchronizer>::create(resourceContext); | 993 | auto synchronizer = QSharedPointer<ImapSynchronizer>::create(resourceContext); |
988 | synchronizer->mServer = server; | 994 | synchronizer->mServer = server; |
989 | synchronizer->mPort = port; | 995 | synchronizer->mPort = port; |