Monotone-Parent: 72951a15317b904c573f349f0cc5252a50749fd3

Monotone-Revision: bafe1b063c24f5ef34672c7a98260bbc66509abe

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-08-12T22:58:35
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2011-08-12 22:58:35 +00:00
parent 61f99524fc
commit 33051f01e3
5 changed files with 78 additions and 12 deletions
+15 -9
View File
@@ -62,7 +62,7 @@
@implementation SOGoMailObject
static NSArray *coreInfoKeys = nil;
NSArray *SOGoMailCoreInfoKeys = nil;
static NSString *mailETag = nil;
static BOOL heavyDebug = NO;
static BOOL debugOn = NO;
@@ -71,15 +71,16 @@ static BOOL debugSoParts = NO;
+ (void) initialize
{
if (!coreInfoKeys)
if (!SOGoMailCoreInfoKeys)
{
/* Note: see SOGoMailManager.m for allowed IMAP4 keys */
coreInfoKeys = [[NSArray alloc] initWithObjects:
@"FLAGS", @"ENVELOPE", @"BODYSTRUCTURE",
@"RFC822.SIZE",
@"RFC822.HEADER",
// not yet supported: @"INTERNALDATE",
nil];
SOGoMailCoreInfoKeys
= [[NSArray alloc] initWithObjects:
@"FLAGS", @"ENVELOPE", @"BODYSTRUCTURE",
@"RFC822.SIZE",
@"RFC822.HEADER",
// not yet supported: @"INTERNALDATE",
nil];
/* The following disabled code should not be needed, except if we use
annotations (see davEntityTag below) */
@@ -219,7 +220,7 @@ static BOOL debugSoParts = NO;
if (!coreInfos)
{
msgs = [self fetchParts: coreInfoKeys]; // returns dict
msgs = [self fetchParts: SOGoMailCoreInfoKeys]; // returns dict
if (heavyDebug)
[self logWithFormat: @"M: %@", msgs];
msgs = [msgs valueForKey: @"fetch"];
@@ -231,6 +232,11 @@ static BOOL debugSoParts = NO;
return coreInfos;
}
- (void) setCoreInfos: (NSDictionary *) newCoreInfos
{
ASSIGN (coreInfos, newCoreInfos);
}
- (id) bodyStructure
{
id body;