Re: Hi all
[notmuch-archives.git] / b0 / 06b67000d0dbd3ad7ba41818c114e80fe882a3
1 Return-Path: <lrilling@gmail.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 23240431FD0\r
6         for <notmuch@notmuchmail.org>; Thu, 14 Jul 2011 07:11:15 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.699\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001,\r
13         RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id swdqIO63qzTr for <notmuch@notmuchmail.org>;\r
17         Thu, 14 Jul 2011 07:11:13 -0700 (PDT)\r
18 Received: from mail-fx0-f46.google.com (mail-fx0-f46.google.com\r
19         [209.85.161.46]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 9783F431FB6\r
22         for <notmuch@notmuchmail.org>; Thu, 14 Jul 2011 07:11:13 -0700 (PDT)\r
23 Received: by fxh19 with SMTP id 19so1067180fxh.19\r
24         for <notmuch@notmuchmail.org>; Thu, 14 Jul 2011 07:11:12 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=sender:date:from:to:cc:subject:message-id:references:mime-version\r
27         :content-type:content-disposition:in-reply-to:user-agent;\r
28         bh=BJs4CLYxSEoMwO3gCVRDmxWjb3cv/RqPgNqdZ68ejJk=;\r
29         b=Lb1HW6LA9ellRoWoaQ/zywvkwjmIs7iBvVn/5HQk769tKCwk/rIIpKD3sspQKbqItp\r
30         MI5BjWPO5alh+ePzLY/wRU1pcwyUHypN4Udl9fpx6GMz8MkfR9ATVIn/1CrR4GX5Ynhx\r
31         mfhkCLtcjrLHSBfIoqz5VJz1fLEiRyMkDvOFc=\r
32 Received: by 10.223.160.71 with SMTP id m7mr2587780fax.93.1310652672051;\r
33         Thu, 14 Jul 2011 07:11:12 -0700 (PDT)\r
34 Received: from localdomain ([78.222.14.116])\r
35         by mx.google.com with ESMTPS id q14sm147301faa.44.2011.07.14.07.11.09\r
36         (version=SSLv3 cipher=OTHER); Thu, 14 Jul 2011 07:11:10 -0700 (PDT)\r
37 Sender: Louis Rilling <lrilling@gmail.com>\r
38 Date: Thu, 14 Jul 2011 16:11:02 +0200\r
39 From: Louis Rilling <l.rilling@av7.net>\r
40 To: Michal Sojka <sojkam1@fel.cvut.cz>\r
41 Subject: Re: [PATCH] test: Adding non-maildir tags does not move message\r
42         from new to cur\r
43 Message-ID: <20110714141101.GA2841@localdomain>\r
44 References: <1310479190-6973-4-git-send-email-l.rilling@av7.net>\r
45         <1310601995-1546-1-git-send-email-sojkam1@fel.cvut.cz>\r
46 MIME-Version: 1.0\r
47 Content-Type: text/plain; charset=us-ascii\r
48 Content-Disposition: inline\r
49 In-Reply-To: <1310601995-1546-1-git-send-email-sojkam1@fel.cvut.cz>\r
50 User-Agent: Mutt/1.5.20 (2009-06-14)\r
51 Cc: Michal Sojka <sojka@os.inf.tu-dresden.de>, notmuch@notmuchmail.org\r
52 X-BeenThere: notmuch@notmuchmail.org\r
53 X-Mailman-Version: 2.1.13\r
54 Precedence: list\r
55 List-Id: "Use and development of the notmuch mail system."\r
56         <notmuch.notmuchmail.org>\r
57 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
58         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
59 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
60 List-Post: <mailto:notmuch@notmuchmail.org>\r
61 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
62 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
63         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
64 X-List-Received-Date: Thu, 14 Jul 2011 14:11:15 -0000\r
65 \r
66 On 14/07/11  2:06 +0200, Michal Sojka wrote:\r
67 > From: Michal Sojka <sojka@os.inf.tu-dresden.de>\r
68\r
69 > This adds a test for patch submitted by Louis Rilling. Without his patch\r
70 > applied this test fails.\r
71 \r
72 Thanks a lot Michal! I was indeed wondering how to do this. This test perfectly matches the intended usage.\r
73 \r
74 Louis\r
75 \r
76 > ---\r
77 >  test/maildir-sync |    6 ++++++\r
78 >  1 files changed, 6 insertions(+), 0 deletions(-)\r
79\r
80 > diff --git a/test/maildir-sync b/test/maildir-sync\r
81 > index a60854f..e1ad81c 100755\r
82 > --- a/test/maildir-sync\r
83 > +++ b/test/maildir-sync\r
84 > @@ -88,6 +88,12 @@ test_expect_equal "$output" "No new mail."\r
85 >  # creating new directories in the mail store, then it should be\r
86 >  # creating all necessary database state for those directories.\r
87 >  \r
88 > +test_begin_subtest "Adding non-maildir tags does not move message from new to cur"\r
89 > +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\r
90 > +notmuch tag +donotmove subject:"Message to stay in new"\r
91 > +output=$(cd "$MAIL_DIR"; ls */message-to-stay-in-new*)\r
92 > +test_expect_equal "$output" "new/message-to-stay-in-new"\r
93 > +\r
94 >  test_begin_subtest "Removing 'S' flag from existing filename adds 'unread' tag"\r
95 >  add_message [subject]='"Removing S flag"' [filename]='removing-s-flag:2,S' [dir]=cur\r
96 >  output=$(notmuch search subject:"Removing S flag" | notmuch_search_sanitize)\r
97 > -- \r
98 > 1.7.5.4\r
99\r
100 > _______________________________________________\r
101 > notmuch mailing list\r
102 > notmuch@notmuchmail.org\r
103 > http://notmuchmail.org/mailman/listinfo/notmuch\r