summaryrefslogtreecommitdiff
path: root/web-ui/app/js/mail_view/ui/mail_view.js
diff options
context:
space:
mode:
authorkaeff <hi@kaeff.net>2015-08-17 15:56:50 +0200
committerkaeff <hi@kaeff.net>2015-08-17 15:56:50 +0200
commitb16bae353e40fa05b4993ef68232a9df83db370e (patch)
tree0768a89a5b98e26b31b52e59aa21fc4a358af8ba /web-ui/app/js/mail_view/ui/mail_view.js
parent57376b6cb20b0d4af0e5940f29229421adf8679f (diff)
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
Diffstat (limited to 'web-ui/app/js/mail_view/ui/mail_view.js')
-rw-r--r--web-ui/app/js/mail_view/ui/mail_view.js2
1 files changed, 1 insertions, 1 deletions
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({