Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 14 / ec6b42f0ed936871b79c2a7150554edcd81d28
1 Return-Path: <daniel@schoepe.org>\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 7D43C429E25\r
6         for <notmuch@notmuchmail.org>; Fri, 28 Oct 2011 04:06:18 -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.79\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.79 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         RCVD_IN_DNSWL_LOW=-0.7, T_MIME_NO_TEXT=0.01] 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 JDQ9fIzZVg9G for <notmuch@notmuchmail.org>;\r
17         Fri, 28 Oct 2011 04:06:16 -0700 (PDT)\r
18 Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com\r
19         [209.85.161.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id B3DF6431FB6\r
22         for <notmuch@notmuchmail.org>; Fri, 28 Oct 2011 04:06:15 -0700 (PDT)\r
23 Received: by faai28 with SMTP id i28so3881463faa.26\r
24         for <notmuch@notmuchmail.org>; Fri, 28 Oct 2011 04:06:13 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=schoepe.org; s=google;\r
26         h=from:to:cc:subject:in-reply-to:references:user-agent:date\r
27         :message-id:mime-version:content-type;\r
28         bh=1+GbB7iUAOpQybymc7YiCPV/2FkoG9/QHXdzwgo0daw=;\r
29         b=Rm4ZrIbZIJGQeq4M9olqlbxlKpEZIuqIMo12ob7a5eoqel3p9au+ppGsbW1esiwS1C\r
30         mlYo3BrmzX6ORIzg95F09T/fgXBiumaXW48aStBt/YxMtJDyU7FKDFHW5mkSr7agLAlJ\r
31         PMzQVf+NL5Xe/iqWfOxr92nHzN1tpUuw0iI+4=\r
32 Received: by 10.223.58.146 with SMTP id g18mr5444180fah.13.1319799973087;\r
33         Fri, 28 Oct 2011 04:06:13 -0700 (PDT)\r
34 Received: from localhost (dslb-178-004-064-120.pools.arcor-ip.net.\r
35         [178.4.64.120])\r
36         by mx.google.com with ESMTPS id y17sm16802163faa.22.2011.10.28.04.06.11\r
37         (version=TLSv1/SSLv3 cipher=OTHER);\r
38         Fri, 28 Oct 2011 04:06:11 -0700 (PDT)\r
39 From: Daniel Schoepe <daniel@schoepe.org>\r
40 To: Jameson Graef Rollins <jrollins@finestructure.net>,\r
41         Thomas Schwinge <thomas@schwinge.name>\r
42 Subject: Re: [PATCH] emacs: Modify notmuch-show-get-message-id to return\r
43         message-id unprefixed with "id:".\r
44 In-Reply-To: <87ehxzb0xg.fsf@servo.finestructure.net>\r
45 References: <87mxdabyy8.fsf@washington.ligo-wa.caltech.edu>\r
46         <1318199748-25058-1-git-send-email-jrollins@finestructure.net>\r
47         <87ehykflzw.fsf@kepler.schwinge.homeip.net>\r
48         <87ehxzb0xg.fsf@servo.finestructure.net>\r
49 User-Agent: Notmuch/0.9-19-ga25c9a0 (http://notmuchmail.org) Emacs/23.3.1\r
50         (x86_64-pc-linux-gnu)\r
51 Date: Fri, 28 Oct 2011 13:06:09 +0200\r
52 Message-ID: <87r51xe5pa.fsf@gilead.invalid>\r
53 MIME-Version: 1.0\r
54 Content-Type: multipart/signed; boundary="=-=-=";\r
55         micalg=pgp-sha1; protocol="application/pgp-signature"\r
56 Cc: Notmuch Mail <notmuch@notmuchmail.org>\r
57 X-BeenThere: notmuch@notmuchmail.org\r
58 X-Mailman-Version: 2.1.13\r
59 Precedence: list\r
60 List-Id: "Use and development of the notmuch mail system."\r
61         <notmuch.notmuchmail.org>\r
62 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
63         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
64 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
65 List-Post: <mailto:notmuch@notmuchmail.org>\r
66 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
67 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
68         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
69 X-List-Received-Date: Fri, 28 Oct 2011 11:06:18 -0000\r
70 \r
71 --=-=-=\r
72 Content-Transfer-Encoding: quoted-printable\r
73 \r
74 On Wed, 26 Oct 2011 19:52:59 -0700, Jameson Graef Rollins <jrollins@finestr=\r
75 ucture.net> wrote:\r
76 > In point of fact, do we need these quotes around message IDs at all?\r
77 > Can message IDs have characters that would need to be escaped for the\r
78 > shell?\r
79 \r
80 Message ID syntax is defined in RFC 2822[1]:\r
81 > message-id      =3D       "Message-ID:" msg-id CRLF\r
82 >=20\r
83 > in-reply-to     =3D       "In-Reply-To:" 1*msg-id CRLF\r
84 >=20\r
85 > references      =3D       "References:" 1*msg-id CRLF\r
86 >=20\r
87 > msg-id          =3D       [CFWS] "<" id-left "@" id-right ">" [CFWS]\r
88 >=20\r
89 > id-left         =3D       dot-atom-text / no-fold-quote / obs-id-left\r
90 >=20\r
91 > id-right        =3D       dot-atom-text / no-fold-literal / obs-id-right\r
92 >=20\r
93 > no-fold-quote   =3D       DQUOTE *(qtext / quoted-pair) DQUOTE\r
94 >\r
95 > no-fold-literal =3D       "[" *(dtext / quoted-pair) "]"\r
96 \r
97 And since\r
98 > quoted-pair     =3D       ("\" text) / obs-qp\r
99 >\r
100 > text            =3D       %d1-9 /         ; Characters excluding CR and LF\r
101 >                        %d11 /\r
102 >                        %d12 /\r
103 >                        %d14-127 /\r
104 >                        obs-text\r
105 \r
106 It can theoretically include pretty much any character, including\r
107 quotes, if they are properly escaped. Hence, the query parser would have\r
108 to take that into account, but surrounding them by quotes probably isn't\r
109 useful anyway.\r
110 \r
111 As far passing things to the shell goes:\r
112 \r
113 > atext           =3D       ALPHA / DIGIT / ; Any character except controls,\r
114 >                         "!" / "#" /     ;  SP, and specials.\r
115 >                         "$" / "%" /     ;  Used for atoms\r
116 >                         "&" / "'" /\r
117 >                         "*" / "+" /\r
118 >                         "-" / "/" /\r
119 >                         "=3D" / "?" /\r
120 >                         "^" / "_" /\r
121 >                         "`" / "{" /\r
122 >                         "|" / "}" /\r
123 >                         "~"\r
124 >=20\r
125 > atom            =3D       [CFWS] 1*atext [CFWS]\r
126 >=20\r
127 > dot-atom        =3D       [CFWS] dot-atom-text [CFWS]\r
128 >=20\r
129 > dot-atom-text   =3D       1*atext *("." 1*atext)\r
130 \r
131 So, they can contain things like "$foo@$bar", which will be mangled if\r
132 passed to the shell, even with double quotes.\r
133 \r
134 [1] http://tools.ietf.org/html/rfc2822#section-3.6.4\r
135 \r
136 Cheers,\r
137 Daniel\r
138 \r
139 --=-=-=\r
140 Content-Type: application/pgp-signature\r
141 \r
142 -----BEGIN PGP SIGNATURE-----\r
143 Version: GnuPG v1.4.11 (GNU/Linux)\r
144 \r
145 iQIcBAEBAgAGBQJOqoyhAAoJEIaTAtce+Z+JE6kP/Rvkh9Yb6a+2Jl0WzLJkk0xz\r
146 j0aI48bXpKbY12OEwOuXRJ75WPMOOh5b9KnkCF7wNIRVAdmy4RX37LjgMRgku29g\r
147 2L7hzpbYvFCsg6Jz1uDBH3iBX3THdu0+DIc3RffRvOWPSVBz3/tjK8kscTnPEhvJ\r
148 6fFDN9KB7kJ5wDFkEwj9IGaQFHP0Yk3LgcQ8BSjmnHRhOvXLKBN2yHoVbhgsAkWw\r
149 OJKEcyZPvx7sEyoekLu9DEfJw/GchTOBAg3wa0PYP1+cjd9SWo68McnKJG6pi8mX\r
150 AThWHRHQs7oR8FABc3ZJ4ftrpIdhIXWvLOklE7JCvdGI6+CX86QRdK/QYCqZaYUZ\r
151 Xkcb8Zm+JwkHc9aHFioTaOiVUclIip2j4XGR8YvfDhyvArpZJXESnbT4xCAMgKFM\r
152 CmLAA2ylGou/xyMmE/k24iuadhIvO8z09J9CQkRE3/bG0CsMtJfs01Akkdi7GPjz\r
153 XpHHj0g5+0EtJx2GPvGxJ5j+aV5MPHuZ/kjycdcGbb39/TjqlcCUbvLz+2l8ywJQ\r
154 ymaC0HNthmYmv7dtB+o4LfHa+mFT/bmQX4bDCdLLGbQrcCSWAlBhvG388C1r3L7f\r
155 +BftxK1pMKNoq2d5SJhprAQDyEkPagUuMxIFOKKViHXlc1xigi0RGdY1VFaEbQIi\r
156 nB/22OheS5cmM4Ix1r4y\r
157 =EswG\r
158 -----END PGP SIGNATURE-----\r
159 --=-=-=--\r