the bodystructure and body parts in an IMAP "fetch" response are now named following their requested identifier instead of "body"
parent
46c82286d8
commit
61b6050058
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue