Re: notmuch and "mute" -- useful to anyone?
[notmuch-archives.git] / 62 / 0ff230f75c6aa73f32df997b866660070629f4
1 Return-Path: <jani@nikula.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 arlo.cworth.org (Postfix) with ESMTP id 4FDC26DE0AF8\r
6  for <notmuch@notmuchmail.org>; Sat, 18 Jul 2015 08:54:00 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.603\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.603 tagged_above=-999 required=5 tests=[AWL=1.322, \r
12  HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7,\r
13  RCVD_IN_MSPIKE_H3=-0.01, \r
14  RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled\r
15 Received: from arlo.cworth.org ([127.0.0.1])\r
16  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
17  with ESMTP id UGueViAVPsIM for <notmuch@notmuchmail.org>;\r
18  Sat, 18 Jul 2015 08:53:57 -0700 (PDT)\r
19 Received: from mail-vn0-f43.google.com (mail-vn0-f43.google.com\r
20  [209.85.216.43])\r
21  by arlo.cworth.org (Postfix) with ESMTPS id 7EED66DE0352\r
22  for <notmuch@notmuchmail.org>; Sat, 18 Jul 2015 08:53:57 -0700 (PDT)\r
23 Received: by vnk197 with SMTP id 197so10364838vnk.3\r
24  for <notmuch@notmuchmail.org>; Sat, 18 Jul 2015 08:53:54 -0700 (PDT)\r
25 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
26  d=1e100.net; s=20130820;\r
27  h=x-gm-message-state:mime-version:in-reply-to:references:date\r
28  :message-id:subject:from:to:content-type;\r
29  bh=kkO+oSQPhiCOkwk/oKrx8xeq7CB3EOi20xydhAB0/k8=;\r
30  b=N/+uJ9Odrf4CwmNTsUC6iVVfRfa6lksTtJXfiRuoXpAVYGAVRqZdKSnxwFQBh2Kh+J\r
31  52KGRvVIWahy8RSG19aQ7CCyObB4sx/OS5CgV52BmWzfidYGz/yMfC49GniiC4c0sf72\r
32  x1IYKgB7qpbUf9rqqjbUTYBdF6w+/oigNersyl7FDX/27jZEoJztbXedTZ58hn202CAU\r
33  nZ8yfTdGxCMINsxgF1zuPgDMYCwrTwMdvobYoum9ztysHJEo8Nr1qyfQhOqgq9XM0Jt0\r
34  mMHJP0Wt2UqprpYClHBBOGaduY9ROC2cVdipI2DaRzHLw5IpVjKlI4AHXMlxZODpolPP\r
35  RXEg==\r
36 X-Gm-Message-State:\r
37  ALoCoQltaEEkH4hCZ52iBWTEWieHWzimUlOU1OOOHxhlNDMpK694lEzJRaiKjtp3aEIBiYKooCkJ\r
38 MIME-Version: 1.0\r
39 X-Received: by 10.52.14.7 with SMTP id l7mr24242015vdc.82.1437234833814; Sat,\r
40  18 Jul 2015 08:53:53 -0700 (PDT)\r
41 Received: by 10.31.188.202 with HTTP; Sat, 18 Jul 2015 08:53:53 -0700 (PDT)\r
42 Received: by 10.31.188.202 with HTTP; Sat, 18 Jul 2015 08:53:53 -0700 (PDT)\r
43 In-Reply-To: <20150718153239.GB4527@chitra.no-ip.org>\r
44 References: <20150717121111.GF25651@chitra.no-ip.org>\r
45  <55A923E9.5070509@imca-cat.org>\r
46  <20150718091139.GB8311@chitra.no-ip.org>\r
47  <CAJhTkNhQtWbt2-ZudUz4bxC98HOC9W-moUohUDaiDuULNXqb9g@mail.gmail.com>\r
48  <20150718153239.GB4527@chitra.no-ip.org>\r
49 Date: Sat, 18 Jul 2015 18:53:53 +0300\r
50 Message-ID:\r
51  <CAB+hUn8TuvpCgoW_O2ajrPPT7q8u1cbt7HBok9Rn=V91ZFDa4w@mail.gmail.com>\r
52 Subject: Re: Searching for phrases in the body of an email\r
53 From: Jani Nikula <jani@nikula.org>\r
54 To: Notmuch Mail <notmuch@notmuchmail.org>\r
55 Content-Type: multipart/alternative; boundary=20cf30334c17ba90e4051b284f1e\r
56 X-BeenThere: notmuch@notmuchmail.org\r
57 X-Mailman-Version: 2.1.18\r
58 Precedence: list\r
59 List-Id: "Use and development of the notmuch mail system."\r
60  <notmuch.notmuchmail.org>\r
61 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
62  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
63 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
64 List-Post: <mailto:notmuch@notmuchmail.org>\r
65 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
66 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
67  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
68 X-List-Received-Date: Sat, 18 Jul 2015 15:54:00 -0000\r
69 \r
70 --20cf30334c17ba90e4051b284f1e\r
71 Content-Type: text/plain; charset=UTF-8\r
72 \r
73 On Jul 18, 2015 6:32 PM, "Suvayu Ali" <fatkasuvayu+linux@gmail.com> wrote:\r
74 >\r
75 > Hi Xu,\r
76 >\r
77 > On Sat, Jul 18, 2015 at 10:54:30AM -0400, Xu Wang wrote:\r
78 > >\r
79 > > First note that I believe notmuch search is case insensitive by\r
80 > > default, so your grep should be case insensitive as well.\r
81 >\r
82 > Good point, I tried that, didn't change the numbers much.  The number of\r
83 > matches from grep went up to 24, whereas notmuch count says 463.\r
84 >\r
85 > > More importantly, I'm not sure how 'no NEAR "plain text" ' syntax is\r
86 > > parsed. Maybe it is parsed as {no NEAR plain} or {text}.\r
87 > >\r
88 >\r
89 > Exactly, that's what I do not understand.\r
90 >\r
91 \r
92 export NOTMUCH_DEBUG_QUERY=1\r
93 \r
94 might help.\r
95 \r
96 > > You would like to search for the exact phrase, correct? How about the\r
97 > > following?\r
98 > >\r
99 > > notmuch search no adj plain adj text\r
100 >\r
101 > Good suggestion.  I tried it, and gives me very consistent numbers:\r
102 >\r
103 > $ notmuch count -- no ADJ plain ADJ text\r
104 > 20\r
105 > $ notmuch show -- $(notmuch search --output=messages -- no NEAR \"plain\\r
106 text\") | \\r
107 >       grep -c -iE 'plain[[:space:]/]+text'\r
108 > 24\r
109 >\r
110 > Of course this does not help me solve my original goal, but I guess now\r
111 > I can try different queries based on your idea.\r
112 >\r
113 > Thanks a lot!\r
114 >\r
115 > --\r
116 > Suvayu\r
117 >\r
118 > Open source is the future. It sets us free.\r
119 > _______________________________________________\r
120 > notmuch mailing list\r
121 > notmuch@notmuchmail.org\r
122 > http://notmuchmail.org/mailman/listinfo/notmuch\r
123 \r
124 --20cf30334c17ba90e4051b284f1e\r
125 Content-Type: text/html; charset=UTF-8\r
126 Content-Transfer-Encoding: quoted-printable\r
127 \r
128 <p dir=3D"ltr"><br>\r
129 On Jul 18, 2015 6:32 PM, &quot;Suvayu Ali&quot; &lt;<a href=3D"mailto:fatka=\r
130 suvayu%2Blinux@gmail.com">fatkasuvayu+linux@gmail.com</a>&gt; wrote:<br>\r
131 &gt;<br>\r
132 &gt; Hi Xu,<br>\r
133 &gt;<br>\r
134 &gt; On Sat, Jul 18, 2015 at 10:54:30AM -0400, Xu Wang wrote:<br>\r
135 &gt; &gt;<br>\r
136 &gt; &gt; First note that I believe notmuch search is case insensitive by<b=\r
137 r>\r
138 &gt; &gt; default, so your grep should be case insensitive as well.<br>\r
139 &gt;<br>\r
140 &gt; Good point, I tried that, didn&#39;t change the numbers much.=C2=A0 Th=\r
141 e number of<br>\r
142 &gt; matches from grep went up to 24, whereas notmuch count says 463.<br>\r
143 &gt;<br>\r
144 &gt; &gt; More importantly, I&#39;m not sure how &#39;no NEAR &quot;plain t=\r
145 ext&quot; &#39; syntax is<br>\r
146 &gt; &gt; parsed. Maybe it is parsed as {no NEAR plain} or {text}.<br>\r
147 &gt; &gt;<br>\r
148 &gt;<br>\r
149 &gt; Exactly, that&#39;s what I do not understand.<br>\r
150 &gt;</p>\r
151 <p dir=3D"ltr">export NOTMUCH_DEBUG_QUERY=3D1=C2=A0</p>\r
152 <p dir=3D"ltr">might help.<br></p>\r
153 <p dir=3D"ltr">&gt; &gt; You would like to search for the exact phrase, cor=\r
154 rect? How about the<br>\r
155 &gt; &gt; following?<br>\r
156 &gt; &gt;<br>\r
157 &gt; &gt; notmuch search no adj plain adj text<br>\r
158 &gt;<br>\r
159 &gt; Good suggestion.=C2=A0 I tried it, and gives me very consistent number=\r
160 s:<br>\r
161 &gt;<br>\r
162 &gt; $ notmuch count -- no ADJ plain ADJ text<br>\r
163 &gt; 20<br>\r
164 &gt; $ notmuch show -- $(notmuch search --output=3Dmessages -- no NEAR \&qu=\r
165 ot;plain\ text\&quot;) | \<br>\r
166 &gt; =C2=A0 =C2=A0 =C2=A0 grep -c -iE &#39;plain[[:space:]/]+text&#39;<br>\r
167 &gt; 24<br>\r
168 &gt;<br>\r
169 &gt; Of course this does not help me solve my original goal, but I guess no=\r
170 w<br>\r
171 &gt; I can try different queries based on your idea.<br>\r
172 &gt;<br>\r
173 &gt; Thanks a lot!<br>\r
174 &gt;<br>\r
175 &gt; --<br>\r
176 &gt; Suvayu<br>\r
177 &gt;<br>\r
178 &gt; Open source is the future. It sets us free.<br>\r
179 &gt; _______________________________________________<br>\r
180 &gt; notmuch mailing list<br>\r
181 &gt; <a href=3D"mailto:notmuch@notmuchmail.org">notmuch@notmuchmail.org</a>=\r
182 <br>\r
183 &gt; <a href=3D"http://notmuchmail.org/mailman/listinfo/notmuch">http://not=\r
184 muchmail.org/mailman/listinfo/notmuch</a><br>\r
185 </p>\r
186 \r
187 --20cf30334c17ba90e4051b284f1e--\r