From: Suvayu Ali Date: Sat, 18 Jul 2015 22:33:15 +0000 (+0200) Subject: Re: Searching for phrases in the body of an email X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b139979a0d748a0d1fe78f2abe5a7dc54d65e1ad;p=notmuch-archives.git Re: Searching for phrases in the body of an email --- diff --git a/1c/4b22586dc0e7cd346cba672395bf0bcc8b3d6f b/1c/4b22586dc0e7cd346cba672395bf0bcc8b3d6f new file mode 100644 index 000000000..ae3c58c76 --- /dev/null +++ b/1c/4b22586dc0e7cd346cba672395bf0bcc8b3d6f @@ -0,0 +1,101 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id DB7FD6DE172B + for ; Sat, 18 Jul 2015 15:33:20 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.719 +X-Spam-Level: +X-Spam-Status: No, score=-0.719 tagged_above=-999 required=5 tests=[AWL=0.101, + DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, + RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, + SPF_PASS=-0.001] autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id z8isndH8wOaq for ; + Sat, 18 Jul 2015 15:33:19 -0700 (PDT) +Received: from mail-wg0-f44.google.com (mail-wg0-f44.google.com + [74.125.82.44]) by arlo.cworth.org (Postfix) with ESMTPS id C63176DE1715 for + ; Sat, 18 Jul 2015 15:33:18 -0700 (PDT) +Received: by wgbcc4 with SMTP id cc4so12229110wgb.3 + for ; Sat, 18 Jul 2015 15:33:17 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=sender:date:from:to:subject:message-id:mail-followup-to:references + :mime-version:content-type:content-disposition:in-reply-to + :user-agent; bh=yyJc4D+3On2DE63VC7nZqzAbVo70jYm7nt2lghq6Kf8=; + b=Qm9vZl21zW32Jw7Ga+GSwtM73N5cqdGZER9u+0aUJW5W67CTwdjPwuQd0gvbeJx9zD + If2a47TEqUD3rHI4GCQIzfWoK265eqBIafXSbqeW/PfjpsarwwGQmDRwttcc3j5BvbtK + WcA4LcIoKMiQI1cH7wiQg5Q/QEhf2zLnglQFelBHkETTtMXRXPHMOQg4IwhFJLf1qiUK + Q6LHRqiuhZ4CSeYokhsdSndc8QqorhuZz3qP/M+9TEooy9tOik9gs04fFs+09HIXqIzH + yg0N2yINinaadjSUUZ1d1hgBfkTpS3x1h4WNZzBVGjVto0yZFc6X5wDb0eWhbv1bPo3p + dFFg== +X-Received: by 10.194.23.106 with SMTP id l10mr44743895wjf.1.1437258797074; + Sat, 18 Jul 2015 15:33:17 -0700 (PDT) +Received: from chitra.no-ip.org (ip82-139-115-46.lijbrandt.net. + [82.139.115.46]) + by smtp.gmail.com with ESMTPSA id k4sm4431749wix.19.2015.07.18.15.33.16 + for + (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Sat, 18 Jul 2015 15:33:16 -0700 (PDT) +Sender: Suvayu Ali +Date: Sun, 19 Jul 2015 00:33:15 +0200 +From: Suvayu Ali +To: notmuch@notmuchmail.org +Subject: Re: Searching for phrases in the body of an email +Message-ID: <20150718223315.GD4527@chitra.no-ip.org> +Mail-Followup-To: notmuch@notmuchmail.org +References: <20150717121111.GF25651@chitra.no-ip.org> + <55A923E9.5070509@imca-cat.org> + <20150718091139.GB8311@chitra.no-ip.org> + + <20150718153239.GB4527@chitra.no-ip.org> + +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +Content-Disposition: inline +In-Reply-To: + +User-Agent: Mutt/1.5.23.1 (2014-03-12) +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.18 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sat, 18 Jul 2015 22:33:20 -0000 + +On Sat, Jul 18, 2015 at 12:34:16PM -0400, Xu Wang wrote: +> On Sat, Jul 18, 2015 at 11:32 AM, Suvayu Ali +> wrote: +> +> > Of course this does not help me solve my original goal, but I guess now +> > I can try different queries based on your idea. +> +> Ah I see. Your goal is to search for phrases close to "no plain text". +> But if you use fuzzy searching but an exact grep, then it is normal +> that the numbers are not consistent, no? Because your grep is not +> fuzzy. + +My grep was this (case insensitive): 'plain[[:space:]/]+text'. Since I +thought I was searching for the _phrase_ "plain text", that would be +adequately fuzzy. However after following Jani's advice, I realise it +wasn't always being treated as a phrase, neither was NEAR being treated +as an operator. + +I wanted to combine a phrase (plain text) with the NEAR query (NEAR no), +but maybe that combination is not possible. That's why I tried to +combine NEAR and ADJ (as per your suggestion) by grouping them, that +does not seem to work either! + +-- +Suvayu + +Open source is the future. It sets us free.