1 Return-Path: <sojkam1@fel.cvut.cz>
\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 0A624431FBF
\r
6 for <notmuch@notmuchmail.org>; Wed, 19 Dec 2012 13:32:57 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\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 YTNicOV5l2hu for <notmuch@notmuchmail.org>;
\r
16 Wed, 19 Dec 2012 13:32:56 -0800 (PST)
\r
17 Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])
\r
18 by olra.theworths.org (Postfix) with ESMTP id 8148C431FB6
\r
19 for <notmuch@notmuchmail.org>; Wed, 19 Dec 2012 13:32:55 -0800 (PST)
\r
20 Received: from localhost (unknown [192.168.200.7])
\r
21 by max.feld.cvut.cz (Postfix) with ESMTP id DD5503CFE86;
\r
22 Wed, 19 Dec 2012 22:32:54 +0100 (CET)
\r
23 X-Virus-Scanned: IMAP STYX AMAVIS
\r
24 Received: from max.feld.cvut.cz ([192.168.200.1])
\r
25 by localhost (styx.feld.cvut.cz [192.168.200.7]) (amavisd-new,
\r
27 with ESMTP id 5AUc_gcCBAD7; Wed, 19 Dec 2012 22:32:53 +0100 (CET)
\r
28 Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])
\r
29 by max.feld.cvut.cz (Postfix) with ESMTP id 9E43B3CFE88;
\r
30 Wed, 19 Dec 2012 22:32:52 +0100 (CET)
\r
31 Received: from steelpick.2x.cz (unknown [213.29.198.144])
\r
32 (Authenticated sender: sojkam1)
\r
33 by imap.feld.cvut.cz (Postfix) with ESMTPSA id 272F4660968;
\r
34 Wed, 19 Dec 2012 22:32:52 +0100 (CET)
\r
35 Received: from wsh by steelpick.2x.cz with local (Exim 4.80)
\r
36 (envelope-from <sojkam1@fel.cvut.cz>)
\r
37 id 1TlRFu-00077n-QU; Wed, 19 Dec 2012 22:32:46 +0100
\r
38 From: Michal Sojka <sojkam1@fel.cvut.cz>
\r
39 To: notmuch@notmuchmail.org
\r
40 Subject: [PATCH 1/3] test: Adding non-maildir tags does not move message from
\r
42 Date: Wed, 19 Dec 2012 22:32:25 +0100
\r
43 Message-Id: <1355952747-27350-2-git-send-email-sojkam1@fel.cvut.cz>
\r
44 X-Mailer: git-send-email 1.7.10.4
\r
45 In-Reply-To: <1355952747-27350-1-git-send-email-sojkam1@fel.cvut.cz>
\r
46 References: <1355952747-27350-1-git-send-email-sojkam1@fel.cvut.cz>
\r
47 Cc: Michal Sojka <sojka@os.inf.tu-dresden.de>
\r
48 X-BeenThere: notmuch@notmuchmail.org
\r
49 X-Mailman-Version: 2.1.13
\r
51 List-Id: "Use and development of the notmuch mail system."
\r
52 <notmuch.notmuchmail.org>
\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
54 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
56 List-Post: <mailto:notmuch@notmuchmail.org>
\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
59 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
60 X-List-Received-Date: Wed, 19 Dec 2012 21:32:57 -0000
\r
62 From: Michal Sojka <sojka@os.inf.tu-dresden.de>
\r
64 Some MUA's like mutt show the difference between "new" emails living in maildir
\r
65 directory new/, and "old" emails living in maildir directory cur/. However
\r
66 notmuch tag unconditionally moves selected messages from new/ to cur/, even if
\r
67 no maildir synchronized tag is changed.
\r
69 While maildir specification forbids messages with tags living in new/, there is
\r
70 no need to move messages to cur/ when no maildir synchronized tag is changed.
\r
71 Thus notmuch can remain transparent with respect to other MUA's.
\r
73 [ Edited commit log to better describe the intended changes, and tag the
\r
74 test as broken until the actual changes are implemented -- Louis Rilling ]
\r
76 Signed-off-by: Louis Rilling <l.rilling@av7.net>
\r
78 [ Converted to use test_subtest_known_broken, David Bremner ]
\r
80 test/maildir-sync | 9 +++++++++
\r
81 1 file changed, 9 insertions(+)
\r
83 diff --git a/test/maildir-sync b/test/maildir-sync
\r
84 index 0fc742a..6165782 100755
\r
85 --- a/test/maildir-sync
\r
86 +++ b/test/maildir-sync
\r
87 @@ -83,6 +83,15 @@ test_expect_equal "$output" "No new mail."
\r
88 # creating new directories in the mail store, then it should be
\r
89 # creating all necessary database state for those directories.
\r
91 +test_begin_subtest "Adding non-maildir tags does not move message from new to cur"
\r
92 +test_subtest_known_broken
\r
93 +add_message [subject]='"Message to stay in new"' \
\r
94 + [date]='"Sat, 01 Jan 2000 12:00:00 -0000"' \
\r
95 + [filename]='message-to-stay-in-new' [dir]=new
\r
96 +notmuch tag +donotmove subject:"Message to stay in new"
\r
97 +output=$(cd "$MAIL_DIR"; ls */message-to-stay-in-new*)
\r
98 +test_expect_equal "$output" "new/message-to-stay-in-new"
\r
100 test_begin_subtest "Removing 'S' flag from existing filename adds 'unread' tag"
\r
101 add_message [subject]='"Removing S flag"' [filename]='removing-s-flag:2,S' [dir]=cur
\r
102 output=$(notmuch search subject:"Removing S flag" | notmuch_search_sanitize)
\r