Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 3C4AC431FD0 for ; Tue, 25 Jan 2011 15:44:33 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 82UKBaFgT6qb for ; Tue, 25 Jan 2011 15:44:31 -0800 (PST) X-Greylist: delayed 902 seconds by postgrey-1.32 at olra; Tue, 25 Jan 2011 15:44:30 PST Received: from DB3EHSOBE001.bigfish.com (db3ehsobe001.messaging.microsoft.com [213.199.154.139]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id D1178431FB6 for ; Tue, 25 Jan 2011 15:44:30 -0800 (PST) Received: from mail102-db3-R.bigfish.com (10.3.81.249) by DB3EHSOBE001.bigfish.com (10.3.84.21) with Microsoft SMTP Server id 14.1.225.8; Tue, 25 Jan 2011 23:29:26 +0000 Received: from mail102-db3 (localhost.localdomain [127.0.0.1]) by mail102-db3-R.bigfish.com (Postfix) with ESMTP id 8DEDD1008122 for ; Tue, 25 Jan 2011 23:29:26 +0000 (UTC) X-SpamScore: -8 X-BigFish: VPS-8(zz4015L140eMzz1202hzz8275bhz32i637h668h736h) X-Forefront-Antispam-Report: KIP:(null); UIP:(null); IPVD:NLI; H:ausb3twp01.amd.com; RD:none; EFVD:NLI Received: from mail102-db3 (localhost.localdomain [127.0.0.1]) by mail102-db3 (MessageSwitch) id 1295998166284026_28820; Tue, 25 Jan 2011 23:29:26 +0000 (UTC) Received: from DB3EHSMHS007.bigfish.com (unknown [10.3.81.244]) by mail102-db3.bigfish.com (Postfix) with ESMTP id 43C0F4C804C for ; Tue, 25 Jan 2011 23:29:26 +0000 (UTC) Received: from ausb3twp01.amd.com (163.181.249.108) by DB3EHSMHS007.bigfish.com (10.3.87.107) with Microsoft SMTP Server id 14.1.225.8; Tue, 25 Jan 2011 23:29:25 +0000 X-WSS-ID: 0LFLQKZ-01-J5J-02 X-M-MSG: Received: from sausexedgep01.amd.com (sausexedgep01-ext.amd.com [163.181.249.72]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by ausb3twp01.amd.com (Tumbleweed MailGate 3.7.2) with ESMTP id 24EC21028886 for ; Tue, 25 Jan 2011 17:29:23 -0600 (CST) Received: from sausexhtp01.amd.com (163.181.3.165) by sausexedgep01.amd.com (163.181.36.54) with Microsoft SMTP Server (TLS) id 8.3.106.1; Tue, 25 Jan 2011 17:29:26 -0600 Received: from optimon.amd.com (163.181.34.104) by sausexhtp01.amd.com (163.181.3.165) with Microsoft SMTP Server id 8.3.83.0; Tue, 25 Jan 2011 17:29:23 -0600 Received: from mhdc-ns01.amd.com (mhdc-ns01.amd.com [165.204.35.147]) by optimon.amd.com (8.12.10/8.12.10) with ESMTP id p0PNTNS8002330 for ; Tue, 25 Jan 2011 17:29:23 -0600 Received: from testarossa.amd.com (testarossa.amd.com [165.204.147.44]) by mhdc-ns01.amd.com (8.13.8+Sun/8.13.8) with ESMTP id p0PNTMid007579 for ; Tue, 25 Jan 2011 16:29:22 -0700 (MST) Received: (from manderso@localhost) by testarossa.amd.com (8.13.1/8.13.1/Submit) id p0PNTMDq010541; Tue, 25 Jan 2011 16:29:22 -0700 X-Authentication-Warning: testarossa.amd.com: manderso set sender to MarkR.Anderson@amd.com using -f From: Mark Anderson To: Subject: Strange match to my query User-Agent: Notmuch/0.4 (http://notmuchmail.org) Emacs/23.1.1 (i686-pc-linux-gnu) Date: Tue, 25 Jan 2011 16:29:22 -0700 Message-ID: <3wd4o8wa7fx.fsf@testarossa.amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-OriginatorOrg: amd.com X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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: Tue, 25 Jan 2011 23:44:33 -0000 Hi guys, What's up? ("Notmuch") Apparently matching on email addresses doesn't work the way I hoped. While debugging why my to:x@y.com search was matching far too many entries, I whittled it down to this: WORD1=hello WORD2=goodbye MSGID=junk$(date +%s) TESTDIR=$(notmuch config get database.path)/.tmp/new TESTMAIL=$TESTDIR/$MSGID:2, mkdir -p $TESTDIR echo Testcase for $WORD1@$WORD2, msgid: $MSGID@junk.com echo "From: nobody@nobody.com To: c@${WORD1}.com, K-R@${WORD2}.com Date: Mon, 24 Jan 2011 23:41:34 -0600 Subject: Error Message-ID: <$MSGID@junk.com> Not empty body.= " > $TESTMAIL notmuch new notmuch search --output=files to:$WORD1@$WORD2 notmuch search --output=files to:\"$WORD1@$WORD2\" Why does that match, but this doesn't? notmuch search --output=files to:\'$WORD1@$WORD2\' Apparently single quotes are the only quote for Xapian's parser? I guess this is a strong vote for the quick integration of the custom parser with optimization passes that turn emails into phrases that can't match across multiple emails. This was just an egregious example of notmuch giving me notmuch of what I wanted, or actually, far too much of what I didn't want. Thanks, -Mark