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
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
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
37 ALoCoQltaEEkH4hCZ52iBWTEWieHWzimUlOU1OOOHxhlNDMpK694lEzJRaiKjtp3aEIBiYKooCkJ
\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
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
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
70 --20cf30334c17ba90e4051b284f1e
\r
71 Content-Type: text/plain; charset=UTF-8
\r
73 On Jul 18, 2015 6:32 PM, "Suvayu Ali" <fatkasuvayu+linux@gmail.com> wrote:
\r
77 > On Sat, Jul 18, 2015 at 10:54:30AM -0400, Xu Wang wrote:
\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
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
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
89 > Exactly, that's what I do not understand.
\r
92 export NOTMUCH_DEBUG_QUERY=1
\r
96 > > You would like to search for the exact phrase, correct? How about the
\r
99 > > notmuch search no adj plain adj text
\r
101 > Good suggestion. I tried it, and gives me very consistent numbers:
\r
103 > $ notmuch count -- no ADJ plain ADJ text
\r
105 > $ notmuch show -- $(notmuch search --output=messages -- no NEAR \"plain\
\r
107 > grep -c -iE 'plain[[:space:]/]+text'
\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
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
124 --20cf30334c17ba90e4051b284f1e
\r
125 Content-Type: text/html; charset=UTF-8
\r
126 Content-Transfer-Encoding: quoted-printable
\r
128 <p dir=3D"ltr"><br>
\r
129 On Jul 18, 2015 6:32 PM, "Suvayu Ali" <<a href=3D"mailto:fatka=
\r
130 suvayu%2Blinux@gmail.com">fatkasuvayu+linux@gmail.com</a>> wrote:<br>
\r
134 > On Sat, Jul 18, 2015 at 10:54:30AM -0400, Xu Wang wrote:<br>
\r
136 > > First note that I believe notmuch search is case insensitive by<b=
\r
138 > > default, so your grep should be case insensitive as well.<br>
\r
140 > Good point, I tried that, didn't change the numbers much.=C2=A0 Th=
\r
142 > matches from grep went up to 24, whereas notmuch count says 463.<br>
\r
144 > > More importantly, I'm not sure how 'no NEAR "plain t=
\r
145 ext" ' syntax is<br>
\r
146 > > parsed. Maybe it is parsed as {no NEAR plain} or {text}.<br>
\r
149 > Exactly, that's what I do not understand.<br>
\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">> > You would like to search for the exact phrase, cor=
\r
154 rect? How about the<br>
\r
155 > > following?<br>
\r
157 > > notmuch search no adj plain adj text<br>
\r
159 > Good suggestion.=C2=A0 I tried it, and gives me very consistent number=
\r
162 > $ notmuch count -- no ADJ plain ADJ text<br>
\r
164 > $ notmuch show -- $(notmuch search --output=3Dmessages -- no NEAR \&qu=
\r
165 ot;plain\ text\") | \<br>
\r
166 > =C2=A0 =C2=A0 =C2=A0 grep -c -iE 'plain[[:space:]/]+text'<br>
\r
169 > Of course this does not help me solve my original goal, but I guess no=
\r
171 > I can try different queries based on your idea.<br>
\r
173 > Thanks a lot!<br>
\r
178 > Open source is the future. It sets us free.<br>
\r
179 > _______________________________________________<br>
\r
180 > notmuch mailing list<br>
\r
181 > <a href=3D"mailto:notmuch@notmuchmail.org">notmuch@notmuchmail.org</a>=
\r
183 > <a href=3D"http://notmuchmail.org/mailman/listinfo/notmuch">http://not=
\r
184 muchmail.org/mailman/listinfo/notmuch</a><br>
\r
187 --20cf30334c17ba90e4051b284f1e--
\r