the bodystructure and body parts in an IMAP "fetch" response are now named following their requested identifier instead of "body"

maint-2.0.2
Wolfgang Sourdeau 2012-10-06 12:19:30 -04:00
parent 46c82286d8
commit 61b6050058
2 changed files with 6 additions and 6 deletions

View File

@ -253,13 +253,13 @@ static BOOL debugSoParts = NO;
- (id) bodyStructure
{
id body;
id bodyStructure;
body = [[self fetchCoreInfos] valueForKey: @"body"];
bodyStructure = [[self fetchCoreInfos] valueForKey: @"bodystructure"];
if (debugBodyStructure)
[self logWithFormat: @"BODY: %@", body];
[self logWithFormat: @"BODYSTRUCTURE: %@", bodyStructure];
return body;
return bodyStructure;
}
- (NGImap4Envelope *) envelope
@ -746,7 +746,7 @@ static BOOL debugSoParts = NO;
if ([prefix hasSuffix: @"/"])
prefix = [prefix substringToIndex: [prefix length] - 1];
[self _feedAttachmentIds: attachmentIds
withInfos: [coreInfos objectForKey: @"body"]
withInfos: [coreInfos objectForKey: @"bodystructure"]
andPrefix: prefix];
return attachmentIds;

View File

@ -299,7 +299,7 @@
hasAttachment = NO;
parts = [[message objectForKey: @"body"] objectForKey: @"parts"];
parts = [[message objectForKey: @"bodystructure"] objectForKey: @"parts"];
if ([parts count] > 1)
{
dispositions = [[parts objectsForKey: @"disposition"