Re: [feature request] emacs: use `notmuch insert` for FCC
[notmuch-archives.git] / 82 / 9271ee903d34d76bad43eda58dfe4f395fffa9
1 Return-Path: <jrollins@finestructure.net>\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 07226431FB5\r
6         for <notmuch@notmuchmail.org>; Thu, 27 Jan 2011 16:05:01 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.29\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] 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 NkkLfDbqG20Q for <notmuch@notmuchmail.org>;\r
16         Thu, 27 Jan 2011 16:05:00 -0800 (PST)\r
17 Received: from brinza.cc.columbia.edu (brinza.cc.columbia.edu [128.59.29.8])\r
18         by olra.theworths.org (Postfix) with ESMTP id 52213429E20\r
19         for <notmuch@notmuchmail.org>; Thu, 27 Jan 2011 16:05:00 -0800 (PST)\r
20 Received: from servo.finestructure.net (c-24-19-44-201.hsd1.wa.comcast.net\r
21         [24.19.44.201])\r
22         (user=jgr2110 author=jrollins@finestructure.net mech=PLAIN bits=0)\r
23         by brinza.cc.columbia.edu (8.14.4/8.14.3) with ESMTP id p0S04vvC002768\r
24         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
25         Thu, 27 Jan 2011 19:04:58 -0500 (EST)\r
26 Received: from jrollins by servo.finestructure.net with local (Exim 4.72)\r
27         (envelope-from <jrollins@finestructure.net>)\r
28         id 1Pibpg-0007Rw-PQ; Thu, 27 Jan 2011 16:04:56 -0800\r
29 From: Jameson Rollins <jrollins@finestructure.net>\r
30 To: Carl Worth <cworth@cworth.org>, Notmuch Mail <notmuch@notmuchmail.org>\r
31 Subject: Re: [PATCH] emacs: send notmuch-query stderr to /dev/null\r
32 In-Reply-To: <87lj27ymqg.fsf@yoom.home.cworth.org>\r
33 References: <878vy7tjog.fsf@servo.finestructure.net>\r
34         <87lj27ymqg.fsf@yoom.home.cworth.org>\r
35 User-Agent: Notmuch/0.5-96-g01f9ea1 (http://notmuchmail.org) Emacs/23.2.1\r
36         (i486-pc-linux-gnu)\r
37 Date: Thu, 27 Jan 2011 16:04:51 -0800\r
38 Message-ID: <87oc7199lo.fsf@servo.finestructure.net>\r
39 MIME-Version: 1.0\r
40 Content-Type: multipart/signed; boundary="=-=-=";\r
41         micalg=pgp-sha256; protocol="application/pgp-signature"\r
42 X-No-Spam-Score: Local\r
43 X-Scanned-By: MIMEDefang 2.68 on 128.59.29.8\r
44 X-BeenThere: notmuch@notmuchmail.org\r
45 X-Mailman-Version: 2.1.13\r
46 Precedence: list\r
47 List-Id: "Use and development of the notmuch mail system."\r
48         <notmuch.notmuchmail.org>\r
49 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
51 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
52 List-Post: <mailto:notmuch@notmuchmail.org>\r
53 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
54 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
56 X-List-Received-Date: Fri, 28 Jan 2011 00:05:01 -0000\r
57 \r
58 --=-=-=\r
59 Content-Transfer-Encoding: quoted-printable\r
60 \r
61 On Thu, 27 Jan 2011 14:49:43 +1000, Carl Worth <cworth@cworth.org> wrote:\r
62 > On Wed, 26 Jan 2011 12:57:50 -0800, Jameson Rollins <jrollins@finestructu=\r
63 re.net> wrote:\r
64 > > The call-process to notmuch in notmuch-query.el was previously sending\r
65 > > stderr into the output buffer.  This means that if there is any stderr\r
66 > > the JSON parsing breaks.  Unfortunately call-process does not support\r
67 > > sending stderr to a separate buffer or to the minibuffer [0], but it\r
68 > > does support sending it to /dev/null.  So we do that here instead.\r
69 > >=20\r
70 > > [0] a bug was filed against emacs (#7842)\r
71 >=20\r
72 > Thanks! I had wondered what those json errors were about. I've committed\r
73 > this.\r
74 >=20\r
75 > I am a bit concerned about throwing the error output away, of course,\r
76 > (so we'll wait for that fix to emacs---thanks for submitting a bug\r
77 > report). Do you have a sense of what kinds of output we are getting on\r
78 > stderr?\r
79 \r
80 So the only stderr output I've ever seen seen is in the\r
81 signature-verification branch (which I now run).  Emails with S/MIME\r
82 signatures are currently not handled (because of GMIME limitations, I\r
83 think) and notmuch throws the following error when trying to process\r
84 them:\r
85 \r
86 servo:~ 0$ notmuch show --format=3Djson --verify id:"4D25D062.1000103@sixde=\r
87 monbag.org" >/dev/null\r
88 Failed to verify signed part: no error explanation given\r
89 servo:~ 0$=20\r
90 \r
91 Obviously the emacs call-process function should be capturing and\r
92 displaying those error messages.  Hopefully we can eventually get that\r
93 fixed.  In the mean time it's probably better to throw out the messages\r
94 rather than have them break the JSON output.\r
95 \r
96 jamie.\r
97 \r
98 --=-=-=\r
99 Content-Type: application/pgp-signature\r
100 \r
101 -----BEGIN PGP SIGNATURE-----\r
102 Version: GnuPG v1.4.10 (GNU/Linux)\r
103 \r
104 iQIcBAEBCAAGBQJNQggjAAoJEO00zqvie6q8pU8QAJA8jml3vJjDgtC5PFzydC+0\r
105 TehFfFZipdlm5V9RAUTvcem9RRq16DPlDL/NA6Qj3KI+9ajcAzW0MQQbVnxepS1S\r
106 gP0yQNnPqzynQaSyJs2DAAVfyjlrbpumGTXBmkgbEuLF1OleyblaiyWxH1YhQvZR\r
107 kRBOPCJBnXJl2c0x6EETmdLl1KoHQ34+ENmfeM8Whp6L2zmL/ePVRqHmW9Av6bo8\r
108 8sOOVMd/rmRz1uJJpL1oaqQ0c4LyN8Mhlbsh3EWelzh2gI5HG156U2PXiOgYntqF\r
109 eZDB6iWrdzHE4Pbrfq/nB/jAYoKuB8K1r4atw4CkEtjPN1GC2a/2Lxa7PqFmPmen\r
110 ifZJNLz21Knq/IvmMJkx167qY/b/2WTWIz/uuyG0Pcws3djQHQCNhQ3NC/81z22u\r
111 4pV41SILNE2mB/cpAhLoeQc8q9iRuWtDvAjxL6r3ALvtMSZvp0ml8yDk/ySSpBjf\r
112 eBUHqopGef54rD5ALLlp3fus8cTmy86LG85hFFU0UfQ/BpvH781/T4MxL9lUwjnH\r
113 H7MYEwvImLoYM5yNPme+e6DskwqH7nExxV0FMpkbh9xdaBI5HW4q+t87ILoaB0ap\r
114 K0sdtbgqj4wfGgo3LeHEuELosMKZm6JCgSZryHJKctSaXO6t05UD9vJmHGgTfKf5\r
115 jUW8oUCHb129IAtta7OE\r
116 =XX/e\r
117 -----END PGP SIGNATURE-----\r
118 --=-=-=--\r