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 3DE41429E25 for ; Mon, 27 Jun 2011 13:58:02 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.699 X-Spam-Level: X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, 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 63UQ0qoXYRRY for ; Mon, 27 Jun 2011 13:58:01 -0700 (PDT) Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com [209.85.216.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id CA82F431FD0 for ; Mon, 27 Jun 2011 13:58:01 -0700 (PDT) Received: by qyk9 with SMTP id 9so3295453qyk.5 for ; Mon, 27 Jun 2011 13:58:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=5eGvopmPY/zUfeyxwWvWilkwvym1MqPqtspv6+v4DAE=; b=NmttHb1gY8exxNw52odQBIGagKaPdCVtT+S4pvtoYoj+0U16ibwEBDgbpRKoWjnsJY pPKjIJDBGQ3tnvxXHdgOsVzq/IPi+jobfLLcPgxpYl58Daoe1kEZ15DmHJ9T5FfWQS42 iUvcaMxnqVXHQd4QLXgIAXCOy2f65v7h9jwa4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=OeSvf39lJwBeZ+zSYbB8n/HPXLcJzjTuf4rdcGobb9NLJ5mDJJ9Z+OHN2NOsp5mw7G 1O/eFLXKv8GxADXhYg/QSI/JuO8ATlRg2qqRzU29SVK4HXwTGI975RfQFbNpeuYq8kfm Isf2UWeI16bWzJjDRTCiJRiDI/14Yt/4Vs+2s= MIME-Version: 1.0 Received: by 10.229.31.1 with SMTP id w1mr5065785qcc.138.1309208281047; Mon, 27 Jun 2011 13:58:01 -0700 (PDT) Sender: amdragon@gmail.com Received: by 10.229.32.197 with HTTP; Mon, 27 Jun 2011 13:58:00 -0700 (PDT) In-Reply-To: <87sjqvw64n.fsf@gmail.com> References: <87sjqvw64n.fsf@gmail.com> Date: Mon, 27 Jun 2011 16:58:00 -0400 X-Google-Sender-Auth: lI70ejrYxb7ATdRuBoNpin0Ihdw Message-ID: Subject: Re: [PATCH] test:Folder tags shouldn't match after removal of file in given folder From: Austin Clements To: Mark Anderson Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 20:58:02 -0000 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 =A0 2001-01-05 [1/1= ] Notmuch Test Suite; Test message #1 (inbox unread)" > + > +sleep 1; I assume this has to do with directory mtime's. Is it sufficient to instead increment_mtime $dir/spam after the rm below? > + > +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."