projects
/
software
/
mumi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
806a61a
)
view: Treat image attachments as binaries.
author
Ricardo Wurmus
<rekado@elephly.net>
Mon, 28 Jan 2019 22:55:39 +0000
(23:55 +0100)
committer
Ricardo Wurmus
<rekado@elephly.net>
Mon, 28 Jan 2019 22:55:39 +0000
(23:55 +0100)
* mumi/web/view/utils.scm (display-message-body): Handle attachments
of type "image" like any other binary attachment.
mumi/web/view/utils.scm
patch
|
blob
|
history
diff --git
a/mumi/web/view/utils.scm
b/mumi/web/view/utils.scm
index 584b9a9ae64fdd114c6bfb04e8ff27e5664e6769..bdecc1474b34e41b70ab71a283ed6ad5010152dc 100644
(file)
--- a/
mumi/web/view/utils.scm
+++ b/
mumi/web/view/utils.scm
@@
-124,7
+124,8
@@
BUG-NUM), even when it is a multipart message."
content-type
(assoc-ref content-type 'type)))
(binary-attachment? (and attachment?
- (eq? (assoc-ref content-type 'type) 'application)))
+ (member (assoc-ref content-type 'type)
+ '(application image))))
(attachment-name
(or (and=> (assoc-ref headers 'content-disposition)
(cut assoc-ref <> 'filename))