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 1F78B429E25 for ; Mon, 27 Jun 2011 15:58:07 -0700 (PDT) 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 K8DHdADxvmfz for ; Mon, 27 Jun 2011 15:58:05 -0700 (PDT) Received: from CH1EHSOBE001.bigfish.com (ch1ehsobe004.messaging.microsoft.com [216.32.181.184]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 332CB431FD0 for ; Mon, 27 Jun 2011 15:58:05 -0700 (PDT) Received: from mail124-ch1-R.bigfish.com (216.32.181.171) by CH1EHSOBE001.bigfish.com (10.43.70.51) with Microsoft SMTP Server id 14.1.225.22; Mon, 27 Jun 2011 22:58:04 +0000 Received: from mail124-ch1 (localhost.localdomain [127.0.0.1]) by mail124-ch1-R.bigfish.com (Postfix) with ESMTP id A123BFB0173; Mon, 27 Jun 2011 22:58:04 +0000 (UTC) X-SpamScore: -16 X-BigFish: VPS-16(zz936eK9371M1432N98dKzz1202hzz8275bh8275dhz32i668h839h61h) X-Spam-TCS-SCL: 0:0 X-Forefront-Antispam-Report: CIP:163.181.249.108; KIP:(null); UIP:(null); IPVD:NLI; H:ausb3twp01.amd.com; RD:none; EFVD:NLI Received: from mail124-ch1 (localhost.localdomain [127.0.0.1]) by mail124-ch1 (MessageSwitch) id 1309215482943164_10184; Mon, 27 Jun 2011 22:58:02 +0000 (UTC) Received: from CH1EHSMHS032.bigfish.com (snatpool1.int.messaging.microsoft.com [10.43.68.246]) by mail124-ch1.bigfish.com (Postfix) with ESMTP id E2ABC77804F; Mon, 27 Jun 2011 22:58:02 +0000 (UTC) Received: from ausb3twp01.amd.com (163.181.249.108) by CH1EHSMHS032.bigfish.com (10.43.70.32) with Microsoft SMTP Server id 14.1.225.22; Mon, 27 Jun 2011 22:57:58 +0000 X-WSS-ID: 0LNH14H-01-DGB-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 (Axway MailGate 3.8.1) with ESMTP id 287E11028578; Mon, 27 Jun 2011 17:57:53 -0500 (CDT) Received: from sausexhtp02.amd.com (163.181.3.152) by sausexedgep01.amd.com (163.181.36.54) with Microsoft SMTP Server (TLS) id 8.3.106.1; Mon, 27 Jun 2011 17:58:01 -0500 Received: from optimon.amd.com (163.181.34.104) by sausexhtp02.amd.com (163.181.3.152) with Microsoft SMTP Server (TLS) id 8.3.83.0; Mon, 27 Jun 2011 17:57:56 -0500 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 p5RMvtap014024; Mon, 27 Jun 2011 17:57:56 -0500 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 p5RMvt2W008956; Mon, 27 Jun 2011 16:57:55 -0600 (MDT) Received: (from manderso@localhost) by testarossa.amd.com (8.13.8/8.13.8/Submit) id p5RMvsGW011872; Mon, 27 Jun 2011 16:57:54 -0600 X-Authentication-Warning: testarossa.amd.com: manderso set sender to MarkR.Anderson@amd.com using -f From: Mark Anderson To: Austin Clements , Mark Anderson Subject: Re: [PATCH] test:Folder tags shouldn't match after removal of file in given folder In-Reply-To: References: <87sjqvw64n.fsf@gmail.com> User-Agent: Notmuch/0.5-171-gcb84187 (http://notmuchmail.org) Emacs/23.1.1 (i686-pc-linux-gnu) Date: Mon, 27 Jun 2011 16:57:53 -0600 Message-ID: <3wd62nqubke.fsf@testarossa.amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-OriginatorOrg: amd.com Cc: "notmuch@notmuchmail.org" 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: Mon, 27 Jun 2011 22:58:07 -0000 On Mon, 27 Jun 2011 15:58:00 -0500, Austin Clements wrot= e: > On Mon, Jun 27, 2011 at 1:12 PM, Mark Anderson wrote: > > +test_begin_subtest "Test matches folder:spam" > > +output=3D$(notmuch search folder:spam) > > +test_expect_equal "$output" "thread:0000000000000001 =C2=A0 2001-01-05= [1/1] Notmuch Test Suite; Test message #1 (inbox unread)" > > + > > +sleep 1; >=20 > I assume this has to do with directory mtime's. Is it sufficient to > instead increment_mtime $dir/spam after the rm below? I believe that would be sufficient. I just had one of my runs fail to even remove the filename, and I remember some earlier discussion along these lines, but I just used the fastest way, I can certainly modify it to use "increment_mtime" >=20 > > + > > +test_begin_subtest "Remove folder:spam copy of email" > > +rm $dir/spam/$(basename $file_x) > > +output=3D$(NOTMUCH_NEW) > > +test_expect_equal "$output" "No new mail. Detected 1 file rename." > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch >=20