Re: A systematic way of handling Xapian lock errors?
[notmuch-archives.git] / 8b / 3288b106dbbdf3e594cb2952745145dc10231e
1 Return-Path: <awg@xvx.ca>\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 1875B431FAF\r
6         for <notmuch@notmuchmail.org>; Mon, 30 Apr 2012 20:36:33 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\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 n+MA4nb9pleJ for <notmuch@notmuchmail.org>;\r
16         Mon, 30 Apr 2012 20:36:31 -0700 (PDT)\r
17 Received: from mail-lpp01m010-f53.google.com (mail-lpp01m010-f53.google.com\r
18         [209.85.215.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id D03E5431FAE\r
21         for <notmuch@notmuchmail.org>; Mon, 30 Apr 2012 20:36:30 -0700 (PDT)\r
22 Received: by lahc1 with SMTP id c1so2615321lah.26\r
23         for <notmuch@notmuchmail.org>; Mon, 30 Apr 2012 20:36:29 -0700 (PDT)\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
25         d=google.com; s=20120113;\r
26         h=mime-version:sender:x-originating-ip:in-reply-to:references:date\r
27         :x-google-sender-auth:message-id:subject:from:to:cc:content-type\r
28         :content-transfer-encoding:x-gm-message-state;\r
29         bh=YLOzDXA+eIamYDOB86S9o+UZn/brqCfn1ff4oNtbFH0=;\r
30         b=oN1oCCuyOL/Re3D2DFnjuCFe/obfb01R4Od8ODRsz9GUrkBahctEt6uKvBkJxvgRCO\r
31         gVuQbdLbJBe0HVlxefOCJdYHwX9D4bF6DEn9KGReAOkvGpkcPIFvehn1XF4ABfF74SM9\r
32         htO33ZOA86cFURvu2ZtZZp/LUExNVHTB6RCdtr81fFu1Loo9Vne9tpoESGQwI9n1K1LU\r
33         4H1r32GFxza7YANsRWSE1RW8V0o0mT9vGGGjQ90tbcotDHlcyqDTsLLARfUtrVNYJC02\r
34         pXafnGxKLybjZQAiICQkLbNt/rGH6bpQLtEG9X0BZ0fWb03V5vYIkhk+qKqpgoP1/5Op\r
35         YWgw==\r
36 MIME-Version: 1.0\r
37 Received: by 10.152.112.97 with SMTP id ip1mr21876103lab.31.1335843389014;\r
38         Mon, 30 Apr 2012 20:36:29 -0700 (PDT)\r
39 Sender: awg@xvx.ca\r
40 Received: by 10.112.82.163 with HTTP; Mon, 30 Apr 2012 20:36:28 -0700 (PDT)\r
41 X-Originating-IP: [96.52.216.56]\r
42 In-Reply-To: <874ns15fky.fsf@steelpick.2x.cz>\r
43 References: <87ehr55knx.fsf@steelpick.2x.cz>\r
44         <CAMoJFUsCe+U_j=oH0c=P6YmD2g_Jk8sxxtJ00JA_sM3dM5pOHQ@mail.gmail.com>\r
45         <874ns15fky.fsf@steelpick.2x.cz>\r
46 Date: Mon, 30 Apr 2012 21:36:28 -0600\r
47 X-Google-Sender-Auth: D7Hu99-8OuktoKBbG9-m-uL_WTU\r
48 Message-ID:\r
49  <CAMoJFUsnxbRz3yPZSVA0w8C2-Qt8fXx3X6i3RZ+QvZGv2EtiFQ@mail.gmail.com>\r
50 Subject: Re: JSON readtable error when replying\r
51 From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>\r
52 To: Michal Sojka <sojkam1@fel.cvut.cz>\r
53 Content-Type: text/plain; charset=ISO-8859-1\r
54 Content-Transfer-Encoding: quoted-printable\r
55 X-Gm-Message-State:\r
56  ALoCoQkGZKIdL6ZXNXtiiSEvlASxk3EWN4JpXLAAbyIMlCaW4pzFOV3UN/uvfyO1OR/rjeVKQm1J\r
57 Cc: notmuch <notmuch@notmuchmail.org>\r
58 X-BeenThere: notmuch@notmuchmail.org\r
59 X-Mailman-Version: 2.1.13\r
60 Precedence: list\r
61 List-Id: "Use and development of the notmuch mail system."\r
62         <notmuch.notmuchmail.org>\r
63 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
64         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
65 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
66 List-Post: <mailto:notmuch@notmuchmail.org>\r
67 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
68 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
69         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
70 X-List-Received-Date: Tue, 01 May 2012 03:36:33 -0000\r
71 \r
72 On Mon, Apr 30, 2012 at 10:50, Michal Sojka <sojkam1@fel.cvut.cz> wrote:\r
73 > json_xs didn't complain, but I've found that notmuch outputs\r
74 > =A0Failed to verify signed part: Cannot verify multipart/signed part: uns=\r
75 upported signature protocol 'application/x-pkcs7-signature'.\r
76 > to stderr before the json output and emacs tries to parse\r
77 > stderr. Emacs then complains about not finding "F" in json-readtable.\r
78 >\r
79 > The following patch fixes the problem for me, but I do not know if it is\r
80 > a good thing to throw away the stderr output of notmuch.\r
81 >\r
82 > diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el\r
83 > index 87bd88d..49db603 100644\r
84 > --- a/emacs/notmuch-mua.el\r
85 > +++ b/emacs/notmuch-mua.el\r
86 > @@ -113,7 +113,7 @@ list."\r
87 >\r
88 > =A0 =A0 ;; Get the reply object as JSON, and parse it into an elisp objec=\r
89 t.\r
90 > =A0 =A0 (with-temp-buffer\r
91 > - =A0 =A0 =A0(apply 'call-process (append (list notmuch-command nil (list=\r
92  t t) nil) args))\r
93 > + =A0 =A0 =A0(apply 'call-process (append (list notmuch-command nil (list=\r
94  t nil) nil) args))\r
95 > =A0 =A0 =A0 (goto-char (point-min))\r
96 > =A0 =A0 =A0 (let ((json-object-type 'plist)\r
97 > =A0 =A0 =A0 =A0 =A0 =A0(json-array-type 'list)\r
98 >\r
99 > Comments?\r
100 \r
101 Good catch. I'm not sure what (if anything) we want to do with the\r
102 stderr output, but putting it in the buffer with the JSON is\r
103 definitely not the right thing. Your fix looks fine to me - would you\r
104 mind doing a commit and sending a patch to the list?\r
105 \r
106 David, it would probably be good to get this (pretty trivial) fix in\r
107 before 0.13, since it will include the JSON reply stuff.\r
108 \r
109 -- Adam\r