--- /dev/null
+Return-Path: <fatkasuvayu+linux@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 922686DE0AF8\r
+ for <notmuch@notmuchmail.org>; Sat, 18 Jul 2015 08:32:48 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.719\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.719 tagged_above=-999 required=5 tests=[AWL=0.101,\r
+ DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001,\r
+ RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01,\r
+ SPF_PASS=-0.001] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id DXG6zLX7n3Rr for <notmuch@notmuchmail.org>;\r
+ Sat, 18 Jul 2015 08:32:46 -0700 (PDT)\r
+Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com\r
+ [209.85.212.169])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 4BCCB6DE0352\r
+ for <notmuch@notmuchmail.org>; Sat, 18 Jul 2015 08:32:46 -0700 (PDT)\r
+Received: by wibud3 with SMTP id ud3so58512508wib.1\r
+ for <notmuch@notmuchmail.org>; Sat, 18 Jul 2015 08:32:43 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=sender:date:from:to:subject:message-id:mail-followup-to:references\r
+ :mime-version:content-type:content-disposition:in-reply-to\r
+ :user-agent; bh=lwnP4K3WOFxVB8WU8LVYanT4CSUezjuuf9R0FhB0vR4=;\r
+ b=rF5OMOXwiL2nf2psVvJ5c4fmZS3i+REWtUpIOCKYsgW8fFZILeRrVMp7iadAch+15v\r
+ T2WJQDMA/I3iRHp3W2QJ6Q0Ffq8oUlFSh9wUj+uHxtGkXPokN1lK76PGdsAxDg3RXBBh\r
+ 7s1KIZVh+Gz5q+olwb393rpSYwkgCHXEMOm7uZOXZH2Wqvx0g/PS8InGqsjDO6kaItHJ\r
+ h7/0YstPsb0quy/86JVAMYA3jf03CJDBjFnxuWZGUknvP2mlP5+X1R5OmysWYwkCMG0G\r
+ TLoj2OBpVRa1UxbbIc8Mq1mXd7cQNVEnQD/QJK6wlFWZ3Pw1rNZVxew4R7Lqex+pPXf3\r
+ q6FA==\r
+X-Received: by 10.180.102.233 with SMTP id fr9mr5768851wib.3.1437233562072;\r
+ Sat, 18 Jul 2015 08:32:42 -0700 (PDT)\r
+Received: from chitra.no-ip.org (ip82-139-115-46.lijbrandt.net.\r
+ [82.139.115.46])\r
+ by smtp.gmail.com with ESMTPSA id l14sm23178123wjq.21.2015.07.18.08.32.40\r
+ for <notmuch@notmuchmail.org>\r
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Sat, 18 Jul 2015 08:32:41 -0700 (PDT)\r
+Sender: Suvayu Ali <fatkasuvayu@gmail.com>\r
+Date: Sat, 18 Jul 2015 17:32:39 +0200\r
+From: Suvayu Ali <fatkasuvayu+linux@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: Re: Searching for phrases in the body of an email\r
+Message-ID: <20150718153239.GB4527@chitra.no-ip.org>\r
+Mail-Followup-To: notmuch@notmuchmail.org\r
+References: <20150717121111.GF25651@chitra.no-ip.org>\r
+ <55A923E9.5070509@imca-cat.org>\r
+ <20150718091139.GB8311@chitra.no-ip.org>\r
+ <CAJhTkNhQtWbt2-ZudUz4bxC98HOC9W-moUohUDaiDuULNXqb9g@mail.gmail.com>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Content-Disposition: inline\r
+In-Reply-To:\r
+ <CAJhTkNhQtWbt2-ZudUz4bxC98HOC9W-moUohUDaiDuULNXqb9g@mail.gmail.com>\r
+User-Agent: Mutt/1.5.23.1 (2014-03-12)\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.18\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 18 Jul 2015 15:32:48 -0000\r
+\r
+Hi Xu,\r
+\r
+On Sat, Jul 18, 2015 at 10:54:30AM -0400, Xu Wang wrote:\r
+> \r
+> First note that I believe notmuch search is case insensitive by\r
+> default, so your grep should be case insensitive as well.\r
+\r
+Good point, I tried that, didn't change the numbers much. The number of\r
+matches from grep went up to 24, whereas notmuch count says 463.\r
+\r
+> More importantly, I'm not sure how 'no NEAR "plain text" ' syntax is\r
+> parsed. Maybe it is parsed as {no NEAR plain} or {text}.\r
+> \r
+\r
+Exactly, that's what I do not understand.\r
+\r
+> You would like to search for the exact phrase, correct? How about the\r
+> following?\r
+> \r
+> notmuch search no adj plain adj text\r
+\r
+Good suggestion. I tried it, and gives me very consistent numbers:\r
+\r
+$ notmuch count -- no ADJ plain ADJ text\r
+20\r
+$ notmuch show -- $(notmuch search --output=messages -- no NEAR \"plain\ text\") | \\r
+ grep -c -iE 'plain[[:space:]/]+text'\r
+24\r
+\r
+Of course this does not help me solve my original goal, but I guess now\r
+I can try different queries based on your idea.\r
+\r
+Thanks a lot!\r
+\r
+-- \r
+Suvayu\r
+\r
+Open source is the future. It sets us free.\r