[PATCH] RFC: all deleting all properties with a given key
[notmuch-archives.git] / be / 1c165fed97f5d5f94d357a341937f89d33df64
1 Return-Path: <MarkR.Anderson@amd.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 olra.theworths.org (Postfix) with ESMTP id DB4A7431FB6\r
6         for <notmuch@notmuchmail.org>; Fri, 25 Feb 2011 12:57:31 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.3\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id 8A21T+D95Qfq for <notmuch@notmuchmail.org>;\r
16         Fri, 25 Feb 2011 12:57:31 -0800 (PST)\r
17 Received: from VA3EHSOBE007.bigfish.com (va3ehsobe006.messaging.microsoft.com\r
18         [216.32.180.16]) (using TLSv1 with cipher AES128-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 037DD431FB5\r
21         for <notmuch@notmuchmail.org>; Fri, 25 Feb 2011 12:57:30 -0800 (PST)\r
22 Received: from mail63-va3-R.bigfish.com (10.7.14.242) by\r
23         VA3EHSOBE007.bigfish.com (10.7.40.11) with Microsoft SMTP Server id\r
24         14.1.225.8; Fri, 25 Feb 2011 20:57:29 +0000\r
25 Received: from mail63-va3 (localhost.localdomain [127.0.0.1])   by\r
26         mail63-va3-R.bigfish.com (Postfix) with ESMTP id DA11FA38343;\r
27         Fri, 25 Feb 2011 20:57:28 +0000 (UTC)\r
28 X-SpamScore: -11\r
29 X-BigFish: VPS-11(zz1432N98dNzz1202hzz8275bh8275chz32i637h668h736h62h)\r
30 X-Spam-TCS-SCL: 1:0\r
31 X-Forefront-Antispam-Report: KIP:(null); UIP:(null); IPVD:NLI;\r
32         H:ausb3twp02.amd.com; RD:none; EFVD:NLI\r
33 Received: from mail63-va3 (localhost.localdomain [127.0.0.1]) by mail63-va3\r
34         (MessageSwitch) id 1298667448567442_6944;\r
35         Fri, 25 Feb 2011 20:57:28 +0000 (UTC)\r
36 Received: from VA3EHSMHS017.bigfish.com (unknown [10.7.14.253]) by\r
37         mail63-va3.bigfish.com (Postfix) with ESMTP id 7967B22804E;\r
38         Fri, 25 Feb 2011 20:57:28 +0000 (UTC)\r
39 Received: from ausb3twp02.amd.com (163.181.249.109) by\r
40         VA3EHSMHS017.bigfish.com (10.7.99.27) with Microsoft SMTP Server id\r
41         14.1.225.8; Fri, 25 Feb 2011 20:57:28 +0000\r
42 X-WSS-ID: 0LH6Y7N-02-OCY-02\r
43 X-M-MSG: \r
44 Received: from sausexedgep02.amd.com (sausexedgep02-ext.amd.com\r
45         [163.181.249.73])       (using TLSv1 with cipher AES128-SHA (128/128\r
46         bits))  (No\r
47         client certificate requested)   by ausb3twp02.amd.com (Tumbleweed\r
48         MailGate\r
49         3.7.2) with ESMTP id 2A53DC882F; Fri, 25 Feb 2011 14:57:22 -0600 (CST)\r
50 Received: from sausexhtp02.amd.com (163.181.3.152) by sausexedgep02.amd.com\r
51         (163.181.36.59) with Microsoft SMTP Server (TLS) id 8.3.106.1;\r
52         Fri, 25 Feb 2011 15:03:22 -0600\r
53 Received: from optimon.amd.com (163.181.34.104) by sausexhtp02.amd.com\r
54         (163.181.3.152) with Microsoft SMTP Server (TLS) id 8.3.83.0;\r
55         Fri, 25 Feb 2011 14:57:27 -0600\r
56 Received: from mhdc-ns01.amd.com (mhdc-ns01.amd.com [165.204.35.147])   by\r
57         optimon.amd.com (8.12.10/8.12.10) with ESMTP id p1PKvQUv019715;\r
58         Fri, 25 Feb 2011 14:57:27 -0600\r
59 Received: from testarossa.amd.com (testarossa.amd.com [165.204.147.44]) by\r
60         mhdc-ns01.amd.com (8.13.8+Sun/8.13.8) with ESMTP id p1PKvQlX021659;\r
61         Fri, 25 Feb 2011 13:57:26 -0700 (MST)\r
62 Received: (from manderso@localhost)     by testarossa.amd.com\r
63         (8.13.1/8.13.1/Submit) id p1PKvNAi016333;\r
64         Fri, 25 Feb 2011 13:57:23 -0700\r
65 X-Authentication-Warning: testarossa.amd.com: manderso set sender to\r
66         MarkR.Anderson@amd.com using -f\r
67 From: Mark Anderson <MarkR.Anderson@amd.com>\r
68 To: Jameson Rollins <jrollins@finestructure.net>, "notmuch@notmuchmail.org"\r
69         <notmuch@notmuchmail.org>\r
70 Subject: Re: Strange match to my query\r
71 In-Reply-To: <878vx4vuxi.fsf@servo.finestructure.net>\r
72 References: <3wd4o8wa7fx.fsf@testarossa.amd.com>\r
73         <878vx4vuxi.fsf@servo.finestructure.net>\r
74 User-Agent: Notmuch/0.5-56-g74cb76a (http://notmuchmail.org) Emacs/23.1.1\r
75         (i686-pc-linux-gnu)\r
76 Date: Fri, 25 Feb 2011 13:57:23 -0700\r
77 Message-ID: <3wd8vx3u91o.fsf@testarossa.amd.com>\r
78 MIME-Version: 1.0\r
79 Content-Type: text/plain; charset="us-ascii"\r
80 X-OriginatorOrg: amd.com\r
81 X-BeenThere: notmuch@notmuchmail.org\r
82 X-Mailman-Version: 2.1.13\r
83 Precedence: list\r
84 List-Id: "Use and development of the notmuch mail system."\r
85         <notmuch.notmuchmail.org>\r
86 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
87         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
88 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
89 List-Post: <mailto:notmuch@notmuchmail.org>\r
90 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
91 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
92         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
93 X-List-Received-Date: Fri, 25 Feb 2011 20:57:32 -0000\r
94 \r
95 On Fri, 25 Feb 2011 12:19:21 -0600, Jameson Rollins <jrollins@finestructure.net> wrote:\r
96 > On Tue, 25 Jan 2011 16:29:22 -0700, Mark Anderson <MarkR.Anderson@amd.com> wrote:\r
97 > > Apparently matching on email addresses doesn't work the way I hoped.\r
98 > > \r
99 > > While debugging why my to:x@y.com search was matching far too many\r
100 > > entries, I whittled it down to this:\r
101 > > \r
102 > > WORD1=hello\r
103 > > WORD2=goodbye\r
104 > > MSGID=junk$(date +%s)\r
105 > > TESTDIR=$(notmuch config get database.path)/.tmp/new\r
106 > > TESTMAIL=$TESTDIR/$MSGID:2,\r
107 > > \r
108 > > mkdir -p $TESTDIR\r
109 > > \r
110 > > echo Testcase for $WORD1@$WORD2, msgid: $MSGID@junk.com\r
111 > > \r
112 > > echo "From: nobody@nobody.com\r
113 > > To: c@${WORD1}.com, K-R@${WORD2}.com\r
114 > > Date: Mon, 24 Jan 2011 23:41:34 -0600\r
115 > > Subject: Error\r
116 > > Message-ID: <$MSGID@junk.com>\r
117 > > \r
118 > > Not empty body.=\r
119 > > \r
120 > > " > $TESTMAIL\r
121 > > \r
122 > > notmuch new\r
123 > > notmuch search --output=files to:$WORD1@$WORD2\r
124 > > notmuch search --output=files to:\"$WORD1@$WORD2\"\r
125 > > \r
126 > > Why does that match, but this doesn't?\r
127 > > \r
128 > > notmuch search --output=files to:\'$WORD1@$WORD2\'\r
129\r
130 > Hey, guys.  Reopening an old thread here, found while trying to track\r
131 > down a similar problem.\r
132\r
133 > I'm confused why any of these searches should return anything at all.\r
134 > "$WORD1@$WORD2" doesn't actually match either of the addresses in the\r
135 > test message, especially when quoted.  The expanded addresses should be:\r
136\r
137 >   c@hello.com\r
138 >   K-R@goodbye.com\r
139\r
140 > Why should\r
141\r
142 >   hello@goodbye\r
143\r
144 > match anything?  And in fact it doesn't for me if I recreate the same\r
145 > setup.  Am I missing something?\r
146 \r
147 It shouldn't match anything, that's the value of finding this bug.\r
148 \r
149 What happened is the term counter was reset for each email address, so\r
150 the term list for emails in "to:" looks something like this:\r
151 \r
152 0 c      K\r
153 1 hello  R\r
154 2 com    goodbye\r
155 3        com\r
156 \r
157 So it matched a hello at 1 and a goodbye at 2.\r
158 \r
159 I don't remember where the discussion on this went, but it was on the\r
160 list.\r
161 \r
162 Perhaps you should search for it, it should take notmuch to\r
163 find... *duck*\r
164 \r
165 -Mark\r
166 \r