Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / d7 / fbbf4b7408c3b85397f5ebe2f10f024c1d4ab8
1 Return-Path: <amdragon@gmail.com>\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 F2B99431FB6\r
6         for <notmuch@notmuchmail.org>; Sun, 12 Dec 2010 11:39:29 -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.798\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.798 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7]\r
14         autolearn=disabled\r
15 Received: from olra.theworths.org ([127.0.0.1])\r
16         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
17         with ESMTP id QnFEX9rjqioN for <notmuch@notmuchmail.org>;\r
18         Sun, 12 Dec 2010 11:39:29 -0800 (PST)\r
19 Received: from mail-qw0-f53.google.com (mail-qw0-f53.google.com\r
20         [209.85.216.53])\r
21         by olra.theworths.org (Postfix) with ESMTP id 559A6431FB5\r
22         for <notmuch@notmuchmail.org>; Sun, 12 Dec 2010 11:39:29 -0800 (PST)\r
23 Received: by qwe5 with SMTP id 5so5992414qwe.26\r
24         for <notmuch@notmuchmail.org>; Sun, 12 Dec 2010 11:39:27 -0800 (PST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=domainkey-signature:mime-version:received:received:in-reply-to\r
27         :references:date:message-id:subject:from:to:cc:content-type;\r
28         bh=bgGWwMT4fngRF8Lz4DKjiU8sWhjQb1SRfjX7CrCeyCY=;\r
29         b=v7wgYdP7x8Vh3Kw5szoaXhWdLf26hmcMEgkb6IeLRcPefL87eczMnwYagw9BQMVM1e\r
30         1Oa9KxVCKw9Ci/UhI+Sj6DT/t78t3/GSdFD6NxXBUp5JFbvt6CaYq6EDZJM9APdwu3im\r
31         h7HtH2bo+sG04q81nqWkwNrNDLnvL8a+gsq4c=\r
32 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
33         h=mime-version:in-reply-to:references:date:message-id:subject:from:to\r
34         :cc:content-type;\r
35         b=m1zxNtXjrDczRhsrHh0mH7UosdgL1/b7EgOyoqd7NLWCwggfvmjF0USzDpo37Hryl1\r
36         nQmOE5X6EoJ0B5P7lr3MuAceGkm4srnSCESFvt3O5A8ETHxtH8iZTuLApi4SeVT0OOzg\r
37         EXgYhNJu22KAG++eKAYLDgIhhokC8U2NBumxQ=\r
38 MIME-Version: 1.0\r
39 Received: by 10.229.95.193 with SMTP id e1mr2989002qcn.277.1292182767489; Sun,\r
40         12 Dec 2010 11:39:27 -0800 (PST)\r
41 Received: by 10.229.224.202 with HTTP; Sun, 12 Dec 2010 11:39:27 -0800 (PST)\r
42 In-Reply-To: <AANLkTik2ADv1fb4kD+=EOhQ+rkkQBVzRMnpyE5Z+7TJs@mail.gmail.com>\r
43 References: <1291235635-16523-1-git-send-email-joel.borggren.franck@gmail.com>\r
44         <AANLkTinX_07ZucHbf6kVAsy-quauY+N9hMhJwKjMt1Dk@mail.gmail.com>\r
45         <AANLkTik2ADv1fb4kD+=EOhQ+rkkQBVzRMnpyE5Z+7TJs@mail.gmail.com>\r
46 Date: Sun, 12 Dec 2010 14:39:27 -0500\r
47 Message-ID: <AANLkTikDQgpeM-Ari2woxUgwpuAH3VVq-O-vQvOGU-hO@mail.gmail.com>\r
48 Subject: Re: [PATCH] add headers cc: bcc: and to: (as exactto:) to search\r
49  index\r
50 From: Austin Clements <amdragon@gmail.com>\r
51 To: =?ISO-8859-1?Q?Joel_Borggr=E9n=2DFranck?= <joel.borggren.franck@gmail.com>\r
52 Content-Type: multipart/alternative; boundary=0016368325acd752ae04973bbe6c\r
53 Cc: notmuch@notmuchmail.org\r
54 X-BeenThere: notmuch@notmuchmail.org\r
55 X-Mailman-Version: 2.1.13\r
56 Precedence: list\r
57 List-Id: "Use and development of the notmuch mail system."\r
58         <notmuch.notmuchmail.org>\r
59 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
60         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
61 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
62 List-Post: <mailto:notmuch@notmuchmail.org>\r
63 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
64 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
65         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
66 X-List-Received-Date: Sun, 12 Dec 2010 19:39:30 -0000\r
67 \r
68 --0016368325acd752ae04973bbe6c\r
69 Content-Type: text/plain; charset=ISO-8859-1\r
70 Content-Transfer-Encoding: quoted-printable\r
71 \r
72 Add the "exactto", "cc", and "bcc" terms just like you do but *remove*\r
73 the "to" term altogether.  Then in notmuch_database_open, after it's added\r
74 the usual probabilistic prefixes, do something like\r
75   notmuch->query_parser->add_prefix ("to", _find_prefix ("exactto"));\r
76   notmuch->query_parser->add_prefix ("to", _find_prefix ("cc"));\r
77   notmuch->query_parser->add_prefix ("to", _find_prefix ("bcc"));\r
78 I haven't tried this, but I believe the effect will be that a query of the\r
79 form to:x will be expanded by the query parser to (exactto:x OR cc:x OR\r
80 bcc:x), which should achieve what you want without any database overhead.\r
81  You might also want\r
82   notmuch->query_parser->add_prefix ("to", "XTO");\r
83 to maintain some form of backwards compatibility.\r
84 \r
85 On Sun, Dec 12, 2010 at 5:43 AM, Joel Borggr=E9n-Franck <\r
86 joel.borggren.franck@gmail.com> wrote:\r
87 \r
88 > On Sun, Dec 12, 2010 at 7:41 AM, Austin Clements <amdragon@gmail.com>\r
89 > wrote:\r
90 > > Short of full header indexing, wouldn't a better way to achieve this be\r
91 > to\r
92 > > store only the "to" header as "XTO", the "cc" header "XCC", and the "bc=\r
93 c"\r
94 > > header as "XBCC" and use Xapian's multi-prefix support to map the "to:"\r
95 > > query prefix to "XTO", "XCC", and "XBCC"?  That way you're not storing\r
96 > twice\r
97 > > as many copies of  every address.\r
98 > >\r
99 >\r
100 > Probably. I know nothing of Xapian, how would you solve it?\r
101 >\r
102 > cheers\r
103 > /Joel\r
104 >\r
105 \r
106 --0016368325acd752ae04973bbe6c\r
107 Content-Type: text/html; charset=ISO-8859-1\r
108 Content-Transfer-Encoding: quoted-printable\r
109 \r
110 Add the=A0&quot;exactto&quot;, &quot;cc&quot;, and &quot;bcc&quot; terms ju=\r
111 st like you do but *remove* the=A0&quot;to&quot; term altogether. =A0Then i=\r
112 n notmuch_database_open, after it&#39;s added the usual probabilistic prefi=\r
113 xes, do something like<div>\r
114 =A0=A0notmuch-&gt;query_parser-&gt;add_prefix (&quot;to&quot;, _find_prefix=\r
115  (&quot;exactto&quot;));</div><div><meta http-equiv=3D"content-type" conten=\r
116 t=3D"text/html; charset=3Dutf-8">=A0=A0notmuch-&gt;query_parser-&gt;add_pre=\r
117 fix (&quot;to&quot;, _find_prefix (&quot;cc&quot;));</div>\r
118 <div><meta http-equiv=3D"content-type" content=3D"text/html; charset=3Dutf-=\r
119 8">=A0=A0notmuch-&gt;query_parser-&gt;add_prefix (&quot;to&quot;, _find_pre=\r
120 fix (&quot;bcc&quot;));<br>I haven&#39;t tried this, but I believe the effe=\r
121 ct will be that a query of the form to:x will be expanded by the query pars=\r
122 er to (exactto:x OR cc:x OR bcc:x), which should achieve what you want with=\r
123 out any database overhead. =A0You might also want</div>\r
124 <div><meta http-equiv=3D"content-type" content=3D"text/html; charset=3Dutf-=\r
125 8">=A0=A0notmuch-&gt;query_parser-&gt;add_prefix (&quot;to&quot;, &quot;XTO=\r
126 &quot;);</div><div>to maintain some form of backwards compatibility.</div><=\r
127 div><br>\r
128 <div class=3D"gmail_quote">On Sun, Dec 12, 2010 at 5:43 AM, Joel Borggr=E9n=\r
129 -Franck <span dir=3D"ltr">&lt;<a href=3D"mailto:joel.borggren.franck@gmail.=\r
130 com">joel.borggren.franck@gmail.com</a>&gt;</span> wrote:<br><blockquote cl=\r
131 ass=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;p=\r
132 adding-left:1ex;">\r
133 <div class=3D"im">On Sun, Dec 12, 2010 at 7:41 AM, Austin Clements &lt;<a h=\r
134 ref=3D"mailto:amdragon@gmail.com">amdragon@gmail.com</a>&gt; wrote:<br>\r
135 &gt; Short of full header indexing, wouldn&#39;t a better way to achieve th=\r
136 is be to<br>\r
137 &gt; store only the &quot;to&quot; header as &quot;XTO&quot;, the &quot;cc&=\r
138 quot; header &quot;XCC&quot;, and the &quot;bcc&quot;<br>\r
139 &gt; header as &quot;XBCC&quot; and use Xapian&#39;s multi-prefix support t=\r
140 o map the &quot;to:&quot;<br>\r
141 &gt; query prefix to &quot;XTO&quot;, &quot;XCC&quot;, and &quot;XBCC&quot;=\r
142 ? =A0That way you&#39;re not storing twice<br>\r
143 &gt; as many copies of =A0every address.<br>\r
144 &gt;<br>\r
145 <br>\r
146 </div>Probably. I know nothing of Xapian, how would you solve it?<br>\r
147 <br>\r
148 cheers<br>\r
149 <font color=3D"#888888">/Joel<br>\r
150 </font></blockquote></div><br></div>\r
151 \r
152 --0016368325acd752ae04973bbe6c--\r