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

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

Date: Sun, 15 Jan 2012 12:16:35 +0000

To: notmuch@notmuchmail.org

Cc:

From: Mark Walters


Hello

This is a resubmission of (a tidied version) of
id:"87mxehqhbl.fsf@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


Thread: