[RFC PATCHv2 0/8] vim: add mailcap filtering to show

Nick Howell nlhowell at gmail.com
Thu Oct 13 13:47:48 PDT 2016


This patch series adds the ability to display parts with non-plaintext
mime types. It uses the mailcap facility (see the commit message for
the first patch) to transform to plaintext. The latter patches add
special handling for multipart/alternative (instead of just treating
it as multipart/mixed).

Probably we should choose a more secure default, e.g. whitelisting
environment variables. It would be nice to recommend the use of a
sandbox.

Changes v1..v2:
- add missing patch "add multipart/alternative picking"
- correct poor conflict resolution in "handle mailcap failure
  gracefully"

Nick Howell (8):
  vim: show: add mailcap filtering
  vim: mailcap: forbid access to display server
  vim: mailcap: gracefully handle missing mimetype
  vim: mailcap: don't corrupt the view if filters write to stderr
  vim: mailcap: redraw after processing
  vim: show: add multipart/alternative picking
  vim: mailcap: show all alternatives if none preferred
  vim: mailcap: handle mailcap failure gracefully

 vim/notmuch.vim | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++----
 1 file changed, 66 insertions(+), 4 deletions(-)

-- 
2.7.3



More information about the notmuch mailing list