Monotone-Parent: f32e34474fd61024f5d4133d14a19d4045b2675b

Monotone-Revision: 6fefb8e8d4a1210e81a21ab84cc5198b17561ef7

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-08-01T18:39:38
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-08-01 18:39:38 +00:00
parent adc04a4f18
commit a18c5aef1e
2 changed files with 11 additions and 6 deletions

View File

@@ -1,5 +1,8 @@
2007-08-01 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Mailer/SOGoMailObject.m ([SOGoMailObject
+initialize]): we now fetch the "BODYSTRUCTURE" key instead of "BODY".
* SoObjects/Mailer/SOGoMailAccount.m ([SOGoMailAccount -inboxFolderNameInContext:])
([SOGoMailAccount -draftsFolderNameInContext:_ctx])
([SOGoMailAccount -sieveFolderNameInContext:_ctx])

View File

@@ -74,7 +74,7 @@ static BOOL debugSoParts = NO;
/* Note: "BODY" actually returns the structure! */
if (fetchHeader) {
coreInfoKeys = [[NSArray alloc] initWithObjects:
@"FLAGS", @"ENVELOPE", @"BODY",
@"FLAGS", @"ENVELOPE", @"BODYSTRUCTURE",
@"RFC822.SIZE",
@"RFC822.HEADER",
// not yet supported: @"INTERNALDATE",
@@ -82,7 +82,7 @@ static BOOL debugSoParts = NO;
}
else {
coreInfoKeys = [[NSArray alloc] initWithObjects:
@"FLAGS", @"ENVELOPE", @"BODY",
@"FLAGS", @"ENVELOPE", @"BODYSTRUCTURE",
@"RFC822.SIZE",
// not yet supported: @"INTERNALDATE",
nil];
@@ -117,9 +117,11 @@ static BOOL debugSoParts = NO;
- (NSMutableString *) imap4URLString
{
NSMutableString *urlString;
NSString *imap4Name;
urlString = [container imap4URLString];
[urlString appendFormat: @"%@", [nameInContainer stringByEscapingURL]];
imap4Name = [[self relativeImap4Name] stringByEscapingURL];
[urlString appendFormat: @"%@", imap4Name];
return urlString;
}
@@ -203,7 +205,7 @@ static BOOL debugSoParts = NO;
/*
Called by -fetchPlainTextParts:
*/
return [[self imap4Connection] fetchURL:[self imap4URL] parts:_parts];
return [[self imap4Connection] fetchURL: [self imap4URL] parts:_parts];
}
/* core infos */
@@ -679,12 +681,12 @@ static BOOL debugSoParts = NO;
- (NSException *) addFlags: (id) _flags
{
return [[self imap4Connection] addFlags:_flags toURL:[self imap4URL]];
return [[self imap4Connection] addFlags:_flags toURL: [self imap4URL]];
}
- (NSException *) removeFlags: (id) _flags
{
return [[self imap4Connection] removeFlags:_flags toURL:[self imap4URL]];
return [[self imap4Connection] removeFlags:_flags toURL: [self imap4URL]];
}
/* permissions */