Re: [PATCH] Fix typo in Message.maildir_flags_to_tags
[notmuch-archives.git] / 31 / 789b246b98efad699291f0bf1ddc88beff8960
1 Return-Path: <keevan@fastmail.fm>\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 3C863431FB6\r
6         for <notmuch@notmuchmail.org>; Thu, 14 Feb 2013 15:06:55 -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: -0.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id YXVmReWQUMgH for <notmuch@notmuchmail.org>;\r
17         Thu, 14 Feb 2013 15:06:54 -0800 (PST)\r
18 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com\r
19         [66.111.4.25])\r
20         (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
21         (No client certificate requested)\r
22         by olra.theworths.org (Postfix) with ESMTPS id 66FD2431FAF\r
23         for <notmuch@notmuchmail.org>; Thu, 14 Feb 2013 15:06:54 -0800 (PST)\r
24 Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43])\r
25         by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id B2CFA205D6;\r
26         Thu, 14 Feb 2013 18:06:53 -0500 (EST)\r
27 Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160])\r
28         by compute3.internal (MEProxy); Thu, 14 Feb 2013 18:06:53 -0500\r
29 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=8t8.us; h=date\r
30         :from:to:cc:subject:message-id:references:mime-version\r
31         :content-type:in-reply-to; s=mesmtp; bh=fK/w1l2br/XFxxp/5KwcewSO\r
32         sgE=; b=oxZYaew/KsV8rweNmYuNJUvMLfi+4uffeTKhLr+HgV+IhI7MuYY8Wg2y\r
33         pcCUMoTY+NgjmvQ0jk+Ou8BbJy33xnt2G513pJ5lLIY9Xoo1GpL0HmVGFG2Uy5Lk\r
34         62Thpij2Q/5Lg4ypM+AazFpDGoh6N/0K9t3w13UEfDAD7S9TN6A=\r
35 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=\r
36         messagingengine.com; h=date:from:to:cc:subject:message-id\r
37         :references:mime-version:content-type:in-reply-to; s=smtpout;\r
38         bh=fK/w1l2br/XFxxp/5KwcewSOsgE=; b=pb4IuMgBDIyAqlPNdwgoxwyUwKWo\r
39         86yXE5+ehJxzqHTHJXt5AdWo/8dXx/tBfijo33eOxHVICIddTqypNaYRg7vUDwnh\r
40         tHIJdEEIDs/DRkYg2PHNgZlwrUIrgPVyyLIGQY0MfRS4KVPM3TrN0tq1SVU1AWw2\r
41         IGY9AbFYV4zHTc8=\r
42 X-Sasl-enc: 9Ck/4arjEPcRf6TAVgEKxlF6iYktbw3PD87gw5itfv5m 1360883213\r
43 Received: from localhost (unknown [75.170.32.230])\r
44         by mail.messagingengine.com (Postfix) with ESMTPA id 2E95A8E03E9;\r
45         Thu, 14 Feb 2013 18:06:52 -0500 (EST)\r
46 Date: Thu, 14 Feb 2013 15:06:51 -0800\r
47 From: "Kevin J. McCarthy" <kevin@8t8.us>\r
48 To: notmuch@notmuchmail.org\r
49 Subject: Re: notmuch-mutt: Use of uninitialized value.\r
50 Message-ID: <20130214230651.GA3247@zaogao.lan>\r
51 Mail-Followup-To: notmuch@notmuchmail.org, Stefano Zacchiroli\r
52  <zack@upsilon.cc>\r
53 References: <20130212005801.GA8419@soarin> <20130213223535.GA3258@zaogao.lan>\r
54         <20130213233657.GA4489@soarin> <20130214083713.GA4123@upsilon.cc>\r
55 MIME-Version: 1.0\r
56 Content-Type: multipart/signed; micalg=pgp-sha256;\r
57         protocol="application/pgp-signature"; boundary="XsQoSWH+UP9D9v3l"\r
58 Content-Disposition: inline\r
59 In-Reply-To: <20130214083713.GA4123@upsilon.cc>\r
60 OpenPGP: id=B6B1CD9613699FB8;\r
61         url=http://www.8t8.us/configs/13699FB8.asc.pubkey; preference=sign\r
62 User-Agent: Mutt/1.5.21 (2010-09-15)\r
63 Cc: Stefano Zacchiroli <zack@upsilon.cc>\r
64 X-BeenThere: notmuch@notmuchmail.org\r
65 X-Mailman-Version: 2.1.13\r
66 Precedence: list\r
67 List-Id: "Use and development of the notmuch mail system."\r
68         <notmuch.notmuchmail.org>\r
69 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
70         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
71 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
72 List-Post: <mailto:notmuch@notmuchmail.org>\r
73 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
74 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
75         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
76 X-List-Received-Date: Thu, 14 Feb 2013 23:06:55 -0000\r
77 \r
78 \r
79 --XsQoSWH+UP9D9v3l\r
80 Content-Type: text/plain; charset=us-ascii\r
81 Content-Disposition: inline\r
82 Content-Transfer-Encoding: quoted-printable\r
83 \r
84 Stefano Zacchiroli wrote:\r
85 > Right, but still a more graceful failure model would be nice.\r
86 >=20\r
87 > Please find attached a patch that in such cases should 1) give a\r
88 > supposedly nice error message explaining what's going on and 2) empty\r
89 > the results dir to avoid showing you unrelated results. It works for me.\r
90 > But extra checking never hurts, in particular for the tag action, which\r
91 > I don't personally use.\r
92 \r
93 The patch works for me (for thread reconstruction - I don't use the\r
94 tagging features either).\r
95 \r
96 > I guess it would also be nice to actually disable $pipe_decode in the\r
97 > relevant Mutt macros, but I'm not sure about to do that without\r
98 > interfering with user desired configuration. Kevin: do you know if there\r
99 > is a common Mutt trick to store the value of a variable before changing\r
100 > it, and restoring it a posteriori?  More isolation for this kind of\r
101 > things in Mutt would definitely be welcome...\r
102 \r
103 It looks like this is possible, as Suvayu Ali mentioned too.  An\r
104 improvement to his example is also mentioned in the manual at\r
105   http://www.mutt.org/doc/devel/manual.html#set-myvar\r
106 You can defer evaluation of the variables until runtime by prefixing\r
107 them with \$.\r
108 \r
109 Here are some proposed improved macros.  (I'll attach a patch file in\r
110 another email.)  Despite my earlier warning about not line-breaking\r
111 macros, these are getting a bit unreadable.  We may want to see\r
112 if/where we can safely line-break them.\r
113 \r
114 macro index <F8> \\r
115       "<enter-command>set my_old_pipe_decode=3D\$pipe_decode my_old_wait_ke=\r
116 y=3D\$wait_key nopipe_decode nowait_key<enter><shell-escape>notmuch-mutt -r=\r
117  --prompt search<enter><change-folder-readonly>`echo ${XDG_CACHE_HOME:-$HOM=\r
118 E/.cache}/notmuch/mutt/results`<enter><enter-command>set pipe_decode=3D\$my=\r
119 _old_pipe_decode wait_key=3D\$my_old_wait_key<enter>" \\r
120       "notmuch: search mail"\r
121 macro index <F9> \\r
122       "<enter-command>set my_old_pipe_decode=3D\$pipe_decode my_old_wait_ke=\r
123 y=3D\$wait_key nopipe_decode nowait_key<enter><pipe-message>notmuch-mutt -r=\r
124  thread<enter><change-folder-readonly>`echo ${XDG_CACHE_HOME:-$HOME/.cache}=\r
125 /notmuch/mutt/results`<enter><enter-command>set pipe_decode=3D\$my_old_pipe=\r
126 _decode wait_key=3D\$my_old_wait_key<enter>" \\r
127       "notmuch: reconstruct thread"\r
128 macro index <F6> \\r
129       "<enter-command>set my_old_pipe_decode=3D\$pipe_decode my_old_wait_ke=\r
130 y=3D\$wait_key nopipe_decode nowait_key<enter><pipe-message>notmuch-mutt ta=\r
131 g -- -inbox<enter><enter-command>set pipe_decode=3D\$my_old_pipe_decode wai=\r
132 t_key=3D\$my_old_wait_key<enter>" \\r
133       "notmuch: remove message from inbox"\r
134 \r
135 -Kevin\r
136 \r
137 \r
138 --XsQoSWH+UP9D9v3l\r
139 Content-Type: application/pgp-signature; name="signature.asc"\r
140 Content-Description: Digital signature\r
141 \r
142 -----BEGIN PGP SIGNATURE-----\r
143 Version: GnuPG v1.4.12 (GNU/Linux)\r
144 \r
145 iQEcBAEBCAAGBQJRHW4FAAoJELaxzZYTaZ+4rbEH/0wBFq9Pe4xSuXJW+Ev1htOg\r
146 uz+1w1uHO0yyM6lm/c7I3I1I0t9bZsqOv3eB0cdF2D1l1AzzwdjF6PmwXQXz4//5\r
147 lqdhN/1T4Zci0ToHSPjb4RfZoGXKoN6AmHhpn6wdkQ+1XsCKG19hEaCtSgdAtn2u\r
148 EvCuk3CsSUZ+trxj3ik9VlQlxzfjBkjDlMJ4NhhQm+6BAJegDWURI16Vo63rQPHU\r
149 m9FeNTslcGnY4a5zCnW/DpgjTCPNyfw+bCHxuXNMY5nTlUUU/BAW0lOKi+Ii8AjZ\r
150 IJwNVCRJQPN0Rx784ec8eCRNjAYEi3+tpVZAWMX5n47GJBoJphWu5LbEv9/uOBM=\r
151 =M3bF\r
152 -----END PGP SIGNATURE-----\r
153 \r
154 --XsQoSWH+UP9D9v3l--\r