Set default Sieve port to 4190

Fixes #4826
This commit is contained in:
Francis Lachapelle committed 2019-09-25 10:54:35 -04:00
1 parent 3100ac1e9c
commit 0de722d8f4
3 files changed
+15 -10

No files matched your search

+5 -5
View File
@@ -1,6 +1,6 @@
/* SOGoSieveManager.m - this file is part of SOGo
*
* Copyright (C) 2010-2016 Inverse inc.
* Copyright (C) 2010-2019 Inverse inc.
*
* Author: Inverse <info@inverse.ca>
*
@@ -673,10 +673,10 @@ static NSString *sieveScriptName = @"sogo";
// sieveServer might have the following format:
//
// sieve://localhost
// sieve://localhost:2000
// sieve://localhost:2000/?tls=YES
// sieve://localhost:4190
// sieve://localhost:4190/?tls=YES
//
// Values such as "localhost" or "localhost:2000" are NOT supported.
// Values such as "localhost" or "localhost:4190" are NOT supported.
//
// We first try to get the user's preferred Sieve server
sieveServer = [[[user mailAccounts] objectAtIndex: 0] objectForKey: @"sieveServerName"];
@@ -710,7 +710,7 @@ static NSString *sieveScriptName = @"sogo";
if ([url port])
sievePort = [[url port] intValue];
else
sievePort = 2000;
sievePort = 4190;
sieveQuery = [cUrl query] ? [cUrl query] : [url query];
if (sieveQuery)