merge of '1f2eaa372e3ae66a929fc22a568735d95ec1f67f'

and '1f953cea64fc6c840758f4cc35550f91b6aa07af'

Monotone-Parent: 1f2eaa372e3ae66a929fc22a568735d95ec1f67f
Monotone-Parent: 1f953cea64fc6c840758f4cc35550f91b6aa07af
Monotone-Revision: e3f12e7b1f3dbd033f9a9644cb66aff2e1661704

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2010-09-02T19:17:20
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2010-09-02 19:17:20 +00:00
7 changed files with 29 additions and 25 deletions
+6 -11
View File
@@ -534,22 +534,17 @@
port = [url port];
encryption = @"none";
port = @"143";
if ([url query] && [[url query] caseInsensitiveCompare: @"tls=YES"] == NSOrderedSame)
encryption = @"tls";
if ([port intValue] == 0)
if ([scheme caseInsensitiveCompare: @"imaps"] == NSOrderedSame &&
![encryption isEqualToString: @"tls"])
{
if (scheme)
{
if ([scheme caseInsensitiveCompare: @"imaps"] == NSOrderedSame &&
![encryption isEqualToString: @"tls"])
{
encryption = @"ssl";
port = @"993";
}
}
encryption = @"ssl";
if ([port intValue] == 0)
port = @"993";
}
if ([url host])