1 Return-Path: <too@guru-group.fi>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 68C23431FAF
\r
6 for <notmuch@notmuchmail.org>; Sun, 21 Oct 2012 05:59:05 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id UdCDaXosseER for <notmuch@notmuchmail.org>;
\r
16 Sun, 21 Oct 2012 05:59:01 -0700 (PDT)
\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])
\r
18 by olra.theworths.org (Postfix) with ESMTP id C9207431FAE
\r
19 for <notmuch@notmuchmail.org>; Sun, 21 Oct 2012 05:59:01 -0700 (PDT)
\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)
\r
21 id BE13D100372; Sun, 21 Oct 2012 15:59:04 +0300 (EEST)
\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
23 To: notmuch@notmuchmail.org
\r
24 Subject: [PATCH 1/1] emacs/notmuch-show.el: handle bodypart insert error
\r
25 Date: Sun, 21 Oct 2012 15:58:56 +0300
\r
26 Message-Id: <1350824336-11060-1-git-send-email-tomi.ollila@iki.fi>
\r
27 X-Mailer: git-send-email 1.7.1
\r
28 Cc: tomi.ollila@iki.fi
\r
29 X-BeenThere: notmuch@notmuchmail.org
\r
30 X-Mailman-Version: 2.1.13
\r
32 List-Id: "Use and development of the notmuch mail system."
\r
33 <notmuch.notmuchmail.org>
\r
34 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
35 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
36 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
37 List-Post: <mailto:notmuch@notmuchmail.org>
\r
38 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
39 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
40 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
41 X-List-Received-Date: Sun, 21 Oct 2012 12:59:05 -0000
\r
43 When inserting of email bodypart failes, insert a failure message
\r
44 to the buffer (and continue) instead of halting the insertion of
\r
45 the rest of that email thread in question.
\r
48 The failure of inserting bodyparts can be experienced in thread
\r
51 id:"m31ul3qo4w.fsf@quad.robs.office"
\r
53 the email id:"87d31artti.fsf@inf-8657.int-evry.fr"
\r
54 makes the halt happen -- when this patch is applied
\r
55 the message !!! bodypart insertion error !!! appears in the
\r
58 for example the email id:"87mwzgxq5l.fsf@inf-8657.int-evry.fr"
\r
60 is not shown in that thread until this patch is applied.
\r
62 Whenever everyone can read these emails we can try to figure
\r
63 out why id:"1349333712-18347-1-git-send-email-tomi.ollila@iki.fi"
\r
64 did not fix some calendar bodypart for Olivier.
\r
68 emacs/notmuch-show.el | 4 +++-
\r
69 1 files changed, 3 insertions(+), 1 deletions(-)
\r
71 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
\r
72 index f273eb4..651a5ee 100644
\r
73 --- a/emacs/notmuch-show.el
\r
74 +++ b/emacs/notmuch-show.el
\r
75 @@ -815,7 +815,9 @@ message at DEPTH in the current thread."
\r
76 ;; Run the content handlers until one of them returns a non-nil
\r
78 (while (and handlers
\r
79 - (not (funcall (car handlers) msg part content-type nth depth declared-type)))
\r
80 + (not (condition-case nil
\r
81 + (funcall (car handlers) msg part content-type nth depth declared-type)
\r
82 + (error (progn (insert "!!! bodypart insert error !!!\n") nil)))))
\r
83 (setq handlers (cdr handlers))))
\r