Re: notmuch.el: controlling what does and doesn't get expanded in searches
[notmuch-archives.git] / 0f / 8645acee83602302d0e0607a585bfeac82056f
1 Return-Path: <xuwang762@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 arlo.cworth.org (Postfix) with ESMTP id 6C4216DE0AF8\r
6  for <notmuch@notmuchmail.org>; Sat, 18 Jul 2015 07:54:35 -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.575\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.575 tagged_above=-999 required=5\r
12  tests=[AWL=-0.005, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,\r
13  DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25,\r
14  FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01,\r
15  RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled\r
16 Received: from arlo.cworth.org ([127.0.0.1])\r
17  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
18  with ESMTP id BbKgAfKBtY7c for <notmuch@notmuchmail.org>;\r
19  Sat, 18 Jul 2015 07:54:33 -0700 (PDT)\r
20 Received: from mail-oi0-f46.google.com (mail-oi0-f46.google.com\r
21  [209.85.218.46])\r
22  by arlo.cworth.org (Postfix) with ESMTPS id 8DA436DE0352\r
23  for <notmuch@notmuchmail.org>; Sat, 18 Jul 2015 07:54:33 -0700 (PDT)\r
24 Received: by oihq81 with SMTP id q81so86387694oih.2\r
25  for <notmuch@notmuchmail.org>; Sat, 18 Jul 2015 07:54:30 -0700 (PDT)\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
27  h=mime-version:in-reply-to:references:date:message-id:subject:from:to\r
28  :content-type; bh=X+8C+i1fhld7Q+Y0zp3hJ+0serYpVaEGWQ8HEnqQ2NI=;\r
29  b=cNM7geR4SwYo5dFWQjLA0VBmZqFE0zPVk1mNCwAq7HSwVQCbTTCpYLbcNCZr9WN1GV\r
30  hU4iMMNLQkBG1YYmaQ9+YpAw73XCdk8gX23ihr1qkDXDBO9te7S/cYPBZRmbq4EXuJnu\r
31  e2ViSFwEnHMJDpks2nIy9S320M/sguWNG2KxoA9IfBgIYFsu9dbsZBeRJNpV81riKwZz\r
32  bNJxFRLQw9xiDMtijbchFvOkWYZqFByhRaERo50jt5r6xmcdOhEtYimvCM9/umDSxaI5\r
33  EgV8Vm4Oi630l6W+HNmmUjHWVYkm+uBhOX8GvbTM1bAS2cFOloxgnAMAVTdyEXMdoHor\r
34  lGyQ==\r
35 MIME-Version: 1.0\r
36 X-Received: by 10.202.229.66 with SMTP id c63mr17550367oih.57.1437231270434;\r
37  Sat, 18 Jul 2015 07:54:30 -0700 (PDT)\r
38 Received: by 10.182.241.167 with HTTP; Sat, 18 Jul 2015 07:54:30 -0700 (PDT)\r
39 In-Reply-To: <20150718091139.GB8311@chitra.no-ip.org>\r
40 References: <20150717121111.GF25651@chitra.no-ip.org>\r
41  <55A923E9.5070509@imca-cat.org>\r
42  <20150718091139.GB8311@chitra.no-ip.org>\r
43 Date: Sat, 18 Jul 2015 10:54:30 -0400\r
44 Message-ID:\r
45  <CAJhTkNhQtWbt2-ZudUz4bxC98HOC9W-moUohUDaiDuULNXqb9g@mail.gmail.com>\r
46 Subject: Re: Searching for phrases in the body of an email\r
47 From: Xu Wang <xuwang762@gmail.com>\r
48 To: notmuch@notmuchmail.org\r
49 Content-Type: text/plain; charset=UTF-8\r
50 X-BeenThere: notmuch@notmuchmail.org\r
51 X-Mailman-Version: 2.1.18\r
52 Precedence: list\r
53 List-Id: "Use and development of the notmuch mail system."\r
54  <notmuch.notmuchmail.org>\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
56  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
58 List-Post: <mailto:notmuch@notmuchmail.org>\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
61  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
62 X-List-Received-Date: Sat, 18 Jul 2015 14:54:35 -0000\r
63 \r
64 On Sat, Jul 18, 2015 at 5:11 AM, Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote:\r
65 > Hi Lewis,\r
66 >\r
67 > On Fri, Jul 17, 2015 at 10:48:57AM -0500, J. Lewis Muir wrote:\r
68 >>\r
69 >> 1. Perhaps you are remembering the "no plain text" message incorrectly?\r
70 >>    For example, the message could have referred to "text/plain" or\r
71 >>    "plaintext" (no space).  These would be sufficiently different to not\r
72 >>    match your grep pattern.\r
73 >\r
74 > True, but my puzzlement is notmuch shouldn't return those results in the\r
75 > first place, since I provided a quoted string: "plain text", unless of\r
76 > course I need to escape the quotes.  Okay, just checked it, doesn't make\r
77 > a difference in the number of hits from notmuch.\r
78 >\r
79 >> 2. Perhaps your email client rendered the "no plain text" message when\r
80 >>    it encountered an email with only a "text/html" content type?  In\r
81 >>    this case, the "no plain text" (or whatever) message would not be\r
82 >>    present in the email itself since it would be generated by the email\r
83 >>    client when rendering the email.\r
84 >\r
85 > This is possible, but I use mutt.  As far as I know, it doesn't do\r
86 > "smart" things like that.  I also recall looking at the mime parts\r
87 > individually as I was surprised at the behaviour, and it was indeed a\r
88 > useless text/plain part with that message.\r
89 >\r
90 >> 3. A really long shot, but could a line wrap have occurred after "plain"\r
91 >>    such that "text" appeared on the next line?  Your grep pattern would\r
92 >>    not match that.\r
93 >\r
94 > Good point, I tried grepping for this instead: 'plain[[:space:]/]+text',\r
95 > no luck.\r
96 >\r
97 > Thanks for your comments.\r
98 >\r
99 > Cheers,\r
100 >\r
101 > --\r
102 > Suvayu\r
103 \r
104 Hi Suvayu,\r
105 \r
106 First note that I believe notmuch search is case insensitive by\r
107 default, so your grep should be case insensitive as well.\r
108 \r
109 More importantly, I'm not sure how 'no NEAR "plain text" ' syntax is\r
110 parsed. Maybe it is parsed as {no NEAR plain} or {text}.\r
111 \r
112 You would like to search for the exact phrase, correct? How about the\r
113 following?\r
114 \r
115 notmuch search no adj plain adj text\r
116 \r
117 Best,\r
118 \r
119 Xu\r