Re: [PATCH] emacs: Do not pass stderr of notmuch reply to JSON parser
authorAdam Wolfe Gordon <awg+notmuch@xvx.ca>
Wed, 2 May 2012 17:39:14 +0000 (11:39 +1800)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:46:52 +0000 (09:46 -0800)
cf/49dfb86c3c104f1bfcd8542e2c2a946f0a01ef [new file with mode: 0644]

diff --git a/cf/49dfb86c3c104f1bfcd8542e2c2a946f0a01ef b/cf/49dfb86c3c104f1bfcd8542e2c2a946f0a01ef
new file mode 100644 (file)
index 0000000..48ef91b
--- /dev/null
@@ -0,0 +1,82 @@
+Return-Path: <awg@xvx.ca>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id A873A431FAF\r
+       for <notmuch@notmuchmail.org>; Wed,  2 May 2012 10:39:17 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id OFef29ZX6YcY for <notmuch@notmuchmail.org>;\r
+       Wed,  2 May 2012 10:39:16 -0700 (PDT)\r
+Received: from mail-lpp01m010-f53.google.com (mail-lpp01m010-f53.google.com\r
+       [209.85.215.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 89E6F431FAE\r
+       for <notmuch@notmuchmail.org>; Wed,  2 May 2012 10:39:16 -0700 (PDT)\r
+Received: by lahc1 with SMTP id c1so698753lah.26\r
+       for <notmuch@notmuchmail.org>; Wed, 02 May 2012 10:39:14 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=google.com; s=20120113;\r
+       h=mime-version:sender:x-originating-ip:in-reply-to:references:date\r
+       :x-google-sender-auth:message-id:subject:from:to:cc:content-type\r
+       :x-gm-message-state;\r
+       bh=9QsnD/+2o4jW8tGf1+EnJFQQGxos/Eisq22lHmq4h9A=;\r
+       b=eRS11reOvYYreU0xPrVkpWPKnkk39+Irq5qF3jBaQzWdTUMoQarRF+RanvfISaquXC\r
+       Rt6aE86nARix49YjJF6kLkibTw5kn9h18LZP3Xp6odey85Wl7+hTqX+gA/kA7SadblGW\r
+       O203MJZn5xOjZe+EfPD8/x2iiBokfh//l9ufbkcr46dC7OL8a5Kd7zLWenzg1yk54vs0\r
+       VFYHU8Q31fOAQmCMVRmLAu27tm/TMRn5QIGXvrcU7+b69+KK/4O89A1I902BnkR8vnfc\r
+       PnEGGIbhVefKXCxsg/FIKOqZ4Tfh8YUxcnDgR+8p7mIVk5Redbl+yhnk23rV1svLSG6m\r
+       L1Ow==\r
+MIME-Version: 1.0\r
+Received: by 10.152.112.97 with SMTP id ip1mr27662218lab.31.1335980354702;\r
+       Wed, 02 May 2012 10:39:14 -0700 (PDT)\r
+Sender: awg@xvx.ca\r
+Received: by 10.112.82.163 with HTTP; Wed, 2 May 2012 10:39:14 -0700 (PDT)\r
+X-Originating-IP: [128.221.197.57]\r
+In-Reply-To: <1335906647-23422-1-git-send-email-sojkam1@fel.cvut.cz>\r
+References:\r
+ <CAMoJFUsnxbRz3yPZSVA0w8C2-Qt8fXx3X6i3RZ+QvZGv2EtiFQ@mail.gmail.com>\r
+       <1335906647-23422-1-git-send-email-sojkam1@fel.cvut.cz>\r
+Date: Wed, 2 May 2012 11:39:14 -0600\r
+X-Google-Sender-Auth: mVkjEWJ70IvNV7QHcVglOs14jho\r
+Message-ID:\r
+ <CAMoJFUvnF7G_XamvvWpmXSTCBzPzLDbg5X7MDgmjud7mPLAPLg@mail.gmail.com>\r
+Subject: Re: [PATCH] emacs: Do not pass stderr of notmuch reply to JSON parser\r
+From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>\r
+To: Michal Sojka <sojkam1@fel.cvut.cz>\r
+Content-Type: text/plain; charset=ISO-8859-1\r
+X-Gm-Message-State:\r
+ ALoCoQlO/nEXE8QiCCpFCAdZ2bNVsffi5Usa86FvtK5i+oi2pDyTEIKYQIL5TxlHr7++OF06ykkF\r
+Cc: notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 02 May 2012 17:39:17 -0000\r
+\r
+On Tue, May 1, 2012 at 3:10 PM, Michal Sojka <sojkam1@fel.cvut.cz> wrote:\r
+> Sometimes, notmuch reply outputs something to stderr, for example:\r
+> "Failed to verify signed part: Cannot verify multipart/signed part:\r
+> unsupported signature protocol". When this happens, replying in emacs\r
+> fails, because emacs cannot parse the error message as JSON.\r
+>\r
+> This patch causes emacs to ignore stderr when reading reply from\r
+> notmuch.\r
+\r
+LGTM, as I said in the other thread. Thanks for the fix.\r
+\r
+-- Adam\r