Re: [PATCH v2] test/search: add check for slightly trick search
authorFelipe Contreras <felipe.contreras@gmail.com>
Wed, 4 May 2011 20:54:05 +0000 (23:54 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:38:08 +0000 (09:38 -0800)
68/f636998c8fa5e08826358e3f996d4a40a16d84 [new file with mode: 0644]

diff --git a/68/f636998c8fa5e08826358e3f996d4a40a16d84 b/68/f636998c8fa5e08826358e3f996d4a40a16d84
new file mode 100644 (file)
index 0000000..3afd897
--- /dev/null
@@ -0,0 +1,90 @@
+Return-Path: <felipe.contreras@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 olra.theworths.org (Postfix) with ESMTP id B4BB6431FB6\r
+       for <notmuch@notmuchmail.org>; Wed,  4 May 2011 13:54:07 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 650OeQqvfmu3 for <notmuch@notmuchmail.org>;\r
+       Wed,  4 May 2011 13:54:07 -0700 (PDT)\r
+Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com\r
+       [209.85.161.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 30F81431FB5\r
+       for <notmuch@notmuchmail.org>; Wed,  4 May 2011 13:54:07 -0700 (PDT)\r
+Received: by fxm8 with SMTP id 8so1148220fxm.26\r
+       for <notmuch@notmuchmail.org>; Wed, 04 May 2011 13:54:05 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+       h=domainkey-signature:mime-version:in-reply-to:references:date\r
+       :message-id:subject:from:to:cc:content-type\r
+       :content-transfer-encoding;\r
+       bh=Aqy/chQrjhQmB8jD1hTBublJ9G2DcXEZc1r6Nfmvfw4=;\r
+       b=OVRIgQeaNWx5QPHVe8JbeDs2JDggyVXX58ROHA6TiOCxynRc/77Y8VnwJh5kGBxQq4\r
+       GgUsq6VxzozU7J5hSAsQbauqI+eUIWt9vnM2/VJxuFsoFTVYCc8nY4lE1EMEUWeucNsm\r
+       SChltFnckEiUhujMTRRtppAEqvrxctijEKKy4=\r
+DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
+       h=mime-version:in-reply-to:references:date:message-id:subject:from:to\r
+       :cc:content-type:content-transfer-encoding;\r
+       b=InFJvdhSk5kuSnaAeJaHXKBKM50ku60ufRlpJfPZmoT87Dnatw19PQPoaxD+yrKRS7\r
+       hdeYwK4+KDkkZ9aZtoATLYl5my2nNaoZsCEBe/IxBIoVVM4XwwRAbaqEy7AnrTE2ruGo\r
+       fZTgoqe4W07Z0H5iAEioFTmCYAGEImJ3Wm4JM=\r
+MIME-Version: 1.0\r
+Received: by 10.223.24.134 with SMTP id v6mr346745fab.146.1304542445868; Wed,\r
+       04 May 2011 13:54:05 -0700 (PDT)\r
+Received: by 10.223.74.130 with HTTP; Wed, 4 May 2011 13:54:05 -0700 (PDT)\r
+In-Reply-To: <BANLkTi=5nv+iC13t8MEg+M4Mx-Gt0ggH_Q@mail.gmail.com>\r
+References: <1304540796-8865-1-git-send-email-felipe.contreras@gmail.com>\r
+       <BANLkTi=5nv+iC13t8MEg+M4Mx-Gt0ggH_Q@mail.gmail.com>\r
+Date: Wed, 4 May 2011 23:54:05 +0300\r
+Message-ID: <BANLkTimoAmxQk8GgM73PmuB6fjbAF0Hefg@mail.gmail.com>\r
+Subject: Re: [PATCH v2] test/search: add check for slightly trick search\r
+From: Felipe Contreras <felipe.contreras@gmail.com>\r
+To: Austin Clements <amdragon@mit.edu>\r
+Content-Type: text/plain; charset=UTF-8\r
+Content-Transfer-Encoding: quoted-printable\r
+Cc: notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\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: Wed, 04 May 2011 20:54:07 -0000\r
+\r
+On Wed, May 4, 2011 at 11:46 PM, Austin Clements <amdragon@mit.edu> wrote:\r
+> On Wed, May 4, 2011 at 4:26 PM, Felipe Contreras\r
+> <felipe.contreras@gmail.com> wrote:\r
+>> +output=3D$(notmuch search from:'search-by-from@' | notmuch_search_sanit=\r
+ize)\r
+>\r
+> I don't think this does what you think it does. =C2=A0Xapian only\r
+> understands double quotes around phrases, not single quotes.\r
+> Furthermore, a single quote after a prefix prevents that token from\r
+> acting as a prefix, so you search is finding messages containing the\r
+> *word* "from" and the phrase "search by from" *anywhere* (which is a\r
+> phrase not because of the quotes, but because of the hyphens).\r
+>\r
+> The test results happen to be the same if you use single quotes or\r
+> double quotes, but for very different reasons.\r
+\r
+Ok, how about:\r
+search from:search-by-from@\r
+\r
+Would that be better?\r
+\r
+--=20\r
+Felipe Contreras\r