]> git.notmuchmail.org Git - notmuch/commit
Make buttons for attachments allow viewing as well as saving
authorMark Walters <markwalters1009@gmail.com>
Fri, 20 Jan 2012 09:44:06 +0000 (09:44 +0000)
committerDavid Bremner <bremner@debian.org>
Sat, 21 Jan 2012 12:55:48 +0000 (08:55 -0400)
commit85665a2955e729eeab1089282ac3f352129276a7
tree6b62d455a74f6c691a3398c3f08f396b31cd79ef
parent6d0fcea4e4fcfb803822741bbed762d499f9a055
Make buttons for attachments allow viewing as well as saving

Define a keymap for attachment buttons to allow multiple actions.
Define 3 possible actions:
    save attachment: exactly as currently,
    view attachment: uses mailcap entry,
    view attachment with user chosen program

Keymap on a button is: s for save, v for view and o for view with
other program. Default (i.e. enter or mouse button) is save but this
is configurable in notmuch customize.

One implementation detail: the view attachment function forces all
attachments to be "displayed" using mailcap even if emacs could
display them itself. Thus, for example, text/html appears in a browser
and text/plain asks whether to save (on a standard debian setup)
emacs/notmuch-show.el