mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 08:34:30 +00:00
Fix rendering of forwarded HTML message with img
Fixes #3981 (partially)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user