Fix rendering of forwarded HTML message with img

Fixes #3981 (partially)
This commit is contained in:
Francis Lachapelle
2017-01-11 16:08:05 -05:00
parent 589827a414
commit e5d0b0b0ca
7 changed files with 41 additions and 4 deletions
+14
View File
@@ -213,6 +213,20 @@ static NSString *mailETag = nil;
viewer = [[context mailRenderingContext] viewerForBodyInfo: info];
[viewer setBodyInfo: info];
NSMutableDictionary *attachmentIds;
NSDictionary *attributes;
unsigned int count, max;
max = [[self attachmentAttrs] count];
attachmentIds = [NSMutableDictionary dictionaryWithCapacity: max];
for (count = 0; count < max; count++)
{
attributes = [[self attachmentAttrs] objectAtIndex: count];
[attachmentIds setObject: [attributes objectForKey: @"url"]
forKey: [attributes objectForKey: @"filename"]];
}
[viewer setAttachmentIds: attachmentIds];
return viewer;
}