From: Nick Howell <nlhowell@gmail.com>
To: notmuch@notmuchmail.org
Cc: nlhowell@gmail.com
Subject: [RFC PATCH 7/7] vim: mailcap: handle mailcap failure gracefully
Date: Thu, 13 Oct 2016 14:13:56 -0600 [thread overview]
Message-ID: <1476389636-10383-8-git-send-email-nlhowell@gmail.com> (raw)
In-Reply-To: <1476389636-10383-1-git-send-email-nlhowell@gmail.com>
---
vim/notmuch.vim | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/vim/notmuch.vim b/vim/notmuch.vim
index da747eb..e9baeff 100644
--- a/vim/notmuch.vim
+++ b/vim/notmuch.vim
@@ -370,6 +370,14 @@ ruby << EOF
io.each_line do |l|
b << l.chomp
end
+ if $? != 0
+ b << "--- ERROR: mailcap failed ---"
+ part.decoded.each_line do |l|
+ b << l.chomp
+ end
+ end
+ rescue
+ b << "--- unavailable ---"
end
rescue
b << "--- unavailable ---"
--
2.7.3
next prev parent reply other threads:[~2016-10-13 20:14 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-29 15:21 Status of Vim client J. Lewis Muir
2016-09-29 17:52 ` Lucas Hoffmann
2016-09-29 18:52 ` David Bremner
2016-10-08 0:08 ` Nick Howell
2016-10-11 0:39 ` Nick Howell
2016-10-13 17:18 ` David Bremner
2016-10-13 18:19 ` nlhowell
2016-10-13 19:58 ` [RFC PATCH 0/2] vim: add "attach" support to compose Nick Howell
2016-10-13 19:58 ` [RFC PATCH 1/2] vim: compose: support additional Notmuch- filters Nick Howell
2016-10-13 19:58 ` [RFC PATCH 2/2] vim: compose: attachment support Nick Howell
2016-10-13 20:13 ` [RFC PATCH 0/7] vim: add mailcap filtering to show Nick Howell
2016-10-13 20:13 ` [RFC PATCH 1/7] vim: show: add mailcap filtering Nick Howell
2016-10-13 20:13 ` [RFC PATCH 2/7] vim: mailcap: forbid access to display server Nick Howell
2016-10-13 20:13 ` [RFC PATCH 3/7] vim: mailcap: gracefully handle missing mimetype Nick Howell
2016-10-13 20:13 ` [RFC PATCH 4/7] vim: mailcap: don't corrupt the view if filters write to stderr Nick Howell
2016-10-13 20:13 ` [RFC PATCH 5/7] vim: mailcap: redraw after processing Nick Howell
2016-10-13 20:13 ` [RFC PATCH 6/7] vim: mailcap: show all alternatives if none preferred Nick Howell
2016-10-13 20:13 ` Nick Howell [this message]
2016-10-13 20:47 ` [RFC PATCHv2 0/8] vim: add mailcap filtering to show Nick Howell
2016-10-13 20:47 ` [RFC PATCHv2 1/8] vim: show: add mailcap filtering Nick Howell
2016-10-13 20:47 ` [RFC PATCHv2 2/8] vim: mailcap: forbid access to display server Nick Howell
2016-10-13 20:47 ` [RFC PATCHv2 3/8] vim: mailcap: gracefully handle missing mimetype Nick Howell
2016-10-13 20:47 ` [RFC PATCHv2 4/8] vim: mailcap: don't corrupt the view if filters write to stderr Nick Howell
2016-10-13 20:47 ` [RFC PATCHv2 5/8] vim: mailcap: redraw after processing Nick Howell
2016-10-13 20:47 ` [RFC PATCHv2 6/8] vim: show: add multipart/alternative picking Nick Howell
2016-10-13 20:47 ` [RFC PATCHv2 7/8] vim: mailcap: show all alternatives if none preferred Nick Howell
2016-10-13 20:47 ` [RFC PATCHv2 8/8] vim: mailcap: handle mailcap failure gracefully Nick Howell
2016-10-13 20:42 ` Status of Vim client David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1476389636-10383-8-git-send-email-nlhowell@gmail.com \
--to=nlhowell@gmail.com \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).