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 23240431FD0 for ; Thu, 14 Jul 2011 07:11:15 -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 swdqIO63qzTr for ; Thu, 14 Jul 2011 07:11:13 -0700 (PDT) Received: from mail-fx0-f46.google.com (mail-fx0-f46.google.com [209.85.161.46]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 9783F431FB6 for ; Thu, 14 Jul 2011 07:11:13 -0700 (PDT) Received: by fxh19 with SMTP id 19so1067180fxh.19 for ; Thu, 14 Jul 2011 07:11:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=BJs4CLYxSEoMwO3gCVRDmxWjb3cv/RqPgNqdZ68ejJk=; b=Lb1HW6LA9ellRoWoaQ/zywvkwjmIs7iBvVn/5HQk769tKCwk/rIIpKD3sspQKbqItp MI5BjWPO5alh+ePzLY/wRU1pcwyUHypN4Udl9fpx6GMz8MkfR9ATVIn/1CrR4GX5Ynhx mfhkCLtcjrLHSBfIoqz5VJz1fLEiRyMkDvOFc= Received: by 10.223.160.71 with SMTP id m7mr2587780fax.93.1310652672051; Thu, 14 Jul 2011 07:11:12 -0700 (PDT) Received: from localdomain ([78.222.14.116]) by mx.google.com with ESMTPS id q14sm147301faa.44.2011.07.14.07.11.09 (version=SSLv3 cipher=OTHER); Thu, 14 Jul 2011 07:11:10 -0700 (PDT) Sender: Louis Rilling Date: Thu, 14 Jul 2011 16:11:02 +0200 From: Louis Rilling To: Michal Sojka Subject: Re: [PATCH] test: Adding non-maildir tags does not move message from new to cur Message-ID: <20110714141101.GA2841@localdomain> References: <1310479190-6973-4-git-send-email-l.rilling@av7.net> <1310601995-1546-1-git-send-email-sojkam1@fel.cvut.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1310601995-1546-1-git-send-email-sojkam1@fel.cvut.cz> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Michal Sojka , 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: Thu, 14 Jul 2011 14:11:15 -0000 On 14/07/11 2:06 +0200, Michal Sojka wrote: > From: Michal Sojka > > This adds a test for patch submitted by Louis Rilling. Without his patch > applied this test fails. Thanks a lot Michal! I was indeed wondering how to do this. This test perfectly matches the intended usage. Louis > --- > test/maildir-sync | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) > > diff --git a/test/maildir-sync b/test/maildir-sync > index a60854f..e1ad81c 100755 > --- a/test/maildir-sync > +++ b/test/maildir-sync > @@ -88,6 +88,12 @@ test_expect_equal "$output" "No new mail." > # creating new directories in the mail store, then it should be > # creating all necessary database state for those directories. > > +test_begin_subtest "Adding non-maildir tags does not move message from new to cur" > +add_message [subject]='"Message to stay in new"' [date]='"Sat, 01 Jan 2000 12:00:00 -0000"' [filename]='message-to-stay-in-new' [dir]=new > +notmuch tag +donotmove subject:"Message to stay in new" > +output=$(cd "$MAIL_DIR"; ls */message-to-stay-in-new*) > +test_expect_equal "$output" "new/message-to-stay-in-new" > + > test_begin_subtest "Removing 'S' flag from existing filename adds 'unread' tag" > add_message [subject]='"Removing S flag"' [filename]='removing-s-flag:2,S' [dir]=cur > output=$(notmuch search subject:"Removing S flag" | notmuch_search_sanitize) > -- > 1.7.5.4 > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch