[PATCH 0/1] emacs: allow viewing as well saving individual attachments

Mark Walters markwalters1009 at gmail.com
Sun Jan 15 04:16:35 PST 2012


Hello

This is a resubmission of (a tidied version) of
id:"87mxehqhbl.fsf at r102.config".

I have modified the emacs interface for handling attachments by adding
a keymap to the attachment button. For example pressing v when on an
attachment button views the attachment (using the mailcap method) and
pressing s saves the attachment. I find this makes it a lot easier
when dealing with message with lots of attachments.  

Other comments:
      "Viewing" a text/html button opens the part in the mailcap
      defined html viewer.
      "Viewing" a part with no mailcap entry just offers to save it.

In this version I make the button default to saving (as currently) but
this is easily customizable.
                                                                                                              
I have also mapped the key "o" (other/open with) on a button
to open with user chosen program. This could be split out into a
separate patch if preferred.

I have been using the previous version since I wrote it in the summer
and not had any problems. This tidied version is less well tested but
the logic should be the same; it seems to work correctly in all cases
I can think to test.

Best wishes

Mark

Mark Walters (1):
  Make buttons for attachments allow viewing as well as saving

 emacs/notmuch-show.el |   81 ++++++++++++++++++++++++++++++++++++++----------
 1 files changed, 64 insertions(+), 17 deletions(-)

-- 
1.7.2.3



More information about the notmuch mailing list