From b16bae353e40fa05b4993ef68232a9df83db370e Mon Sep 17 00:00:00 2001 From: kaeff Date: Mon, 17 Aug 2015 15:56:50 +0200 Subject: Read encoding from attachment info instead of headers Clean up by removing now unused headers from attachment info, and add a unit test for attachment rendering --- web-ui/app/js/mail_view/ui/mail_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web-ui/app') diff --git a/web-ui/app/js/mail_view/ui/mail_view.js b/web-ui/app/js/mail_view/ui/mail_view.js index 71a67e5a..7caf813a 100644 --- a/web-ui/app/js/mail_view/ui/mail_view.js +++ b/web-ui/app/js/mail_view/ui/mail_view.js @@ -58,7 +58,7 @@ define( } var attachments = _.map(data.mail.attachments, function(a){ - return { 'encoding': a.headers['Content-Transfer-Encoding'], 'name': a.name, 'ident': a.ident }; + return { 'encoding': a.encoding, 'name': a.name, 'ident': a.ident }; }); this.$node.html(templates.mails.fullView({ -- cgit v1.2.3