See ChangeLog

Monotone-Parent: 5be507aec21eb7c99a5024135035b80901450a40
Monotone-Revision: d85ac88023025021e4352537636d2fc8a8d43667

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2011-10-14T16:32:30
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Ludovic Marcotte
2011-10-14 16:32:30 +00:00
parent ecd08fd79b
commit 185f62de12
2 changed files with 17 additions and 1 deletions
+2
View File
@@ -2,6 +2,8 @@
* SoObjects/SOGo/SOGoGCSFolder.m (setRoles:forUser:..)
We now even cache "None" roles.
* SoObjects/Mailer/SOGoMailObject.m (fetchCoreInfos)
We now handle correctly untagged responses.
2011-10-13 Francis Lachapelle <flachapelle@inverse.ca>
+15 -1
View File
@@ -217,6 +217,7 @@ static BOOL debugSoParts = NO;
- (id) fetchCoreInfos
{
id msgs;
int i;
if (!coreInfos)
{
@@ -224,8 +225,21 @@ static BOOL debugSoParts = NO;
if (heavyDebug)
[self logWithFormat: @"M: %@", msgs];
msgs = [msgs valueForKey: @"fetch"];
// We MUST honor untagged IMAP responses here otherwise we could
// return really borken and nasty results.
if ([msgs count] > 0)
coreInfos = [msgs objectAtIndex: 0];
{
for (i = 0; i < [msgs count]; i++)
{
coreInfos = [msgs objectAtIndex: i];
if ([[coreInfos objectForKey: @"uid"] intValue] == [[self nameInContainer] intValue])
break;
coreInfos = nil;
}
}
[coreInfos retain];
}