mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-11 00:08:51 +00:00
See ChangeLog
Monotone-Parent: 92cceaf860bbf56d983063471093858a3871ec23 Monotone-Revision: e38c570559610854b85c2c517053417779a76964 Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2011-11-16T15:13:53 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2011-11-16 Ludovic Marcotte <lmarcotte@inverse.ca>
|
||||
|
||||
* SoObjects/SOGo/SOGoSieveManager.m (-updateFiltersForLogin:...)
|
||||
We now handle connection exceptions to avoid crashing sogod.
|
||||
|
||||
2011-11-13 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* OpenChange/MAPIStoreContactsMessage.m (-getPrBody:inMemCtx:):
|
||||
|
||||
@@ -629,7 +629,7 @@ static NSString *sieveScriptName = @"sogo";
|
||||
NGSieveClient *client;
|
||||
NSString *filterScript, *v, *sieveServer;
|
||||
int sievePort;
|
||||
BOOL b;
|
||||
BOOL b, connected;
|
||||
|
||||
dd = [user domainDefaults];
|
||||
if (!([dd sieveScriptsEnabled] || [dd vacationEnabled] || [dd forwardEnabled]))
|
||||
@@ -637,6 +637,8 @@ static NSString *sieveScriptName = @"sogo";
|
||||
|
||||
req = [NSMutableArray arrayWithCapacity: 15];
|
||||
ud = [user userDefaults];
|
||||
|
||||
connected = YES;
|
||||
b = NO;
|
||||
|
||||
script = [NSMutableString string];
|
||||
@@ -793,7 +795,23 @@ static NSString *sieveScriptName = @"sogo";
|
||||
[client closeConnection];
|
||||
return NO;
|
||||
}
|
||||
result = [client login: theLogin authname: theAuthName password: thePassword];
|
||||
|
||||
NS_DURING
|
||||
{
|
||||
result = [client login: theLogin authname: theAuthName password: thePassword];
|
||||
}
|
||||
NS_HANDLER
|
||||
{
|
||||
connected = NO;
|
||||
}
|
||||
NS_ENDHANDLER
|
||||
|
||||
if (!connected)
|
||||
{
|
||||
NSLog(@"Sieve connection failed on %@", [address description]);
|
||||
return NO;
|
||||
}
|
||||
|
||||
if (![[result valueForKey:@"result"] boolValue]) {
|
||||
NSLog(@"failure. Attempting with a renewed password (no authname supported)");
|
||||
thePassword = [theAccount imap4PasswordRenewed: YES];
|
||||
|
||||
Reference in New Issue
Block a user