]> git.notmuchmail.org Git - notmuch/commit
emacs: bugfix attachment content-type as mime-type handling 0.16_rc2
authorMark Walters <markwalters1009@gmail.com>
Wed, 31 Jul 2013 18:39:05 +0000 (19:39 +0100)
committerDavid Bremner <bremner@debian.org>
Wed, 31 Jul 2013 20:46:09 +0000 (17:46 -0300)
commit15f5fc513d45cb6173c1a319e3c58b724c3da4db
tree16163ab0198925a50650e195c30284a0a830b146
parent29762dd15e84da6c4a30016b255e7dba8002cf8a
emacs: bugfix attachment content-type as mime-type handling

Notmuch puts attachments in as declared content-type except when the
content-type is application/octet-stream it tries to guess the type
from the filename/extension. This means that viewing a pdf (for
example) which is sent as application/octet-strem invokes the pdf
viewer rather than just offering to save the part.

Recent changes to the attachment handling (commit 1546387d) changed
(broke) this. This patch stores the calculated mime-type with the part
and changes the attachment part handlers can use it instead.
emacs/notmuch-show.el