mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-06 08:55:08 +00:00
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:
@@ -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>
|
||||
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user