[PATCH 2/7] search: Support --format-version
[notmuch-archives.git] / fd / c7f169cd5c768b0dd64230dbecaf8d94bbf8e7
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 E06E5429E36\r
6         for <notmuch@notmuchmail.org>; Wed, 14 Sep 2011 15:23:58 -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 Zx3YshoKSj3Z for <notmuch@notmuchmail.org>;\r
17         Wed, 14 Sep 2011 15:23:57 -0700 (PDT)\r
18 Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com\r
19  [74.125.82.45])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
20  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
21  0C205429E29    for <notmuch@notmuchmail.org>; Wed, 14 Sep 2011 15:23:55 -0700\r
22  (PDT)\r
23 Received: by mail-ww0-f45.google.com with SMTP id 36so2235195wwi.2\r
24         for <notmuch@notmuchmail.org>; Wed, 14 Sep 2011 15:23:55 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to\r
27         :references; bh=zVWcNjtmv/y7BIQUHx/1pFRt3xQ+Umr0N9NhkLPI2GQ=;\r
28         b=rB9fzUlHjeDN5ZmgaFc0RsFNpnarT6XkBXwcVrC+M8y7aOEwP5d1hqHTMj3CHGcQBW\r
29         103MMjVSGRTRiSebuYvt6bPiHs/Bko8KAhJwiBqq/B7lgh0YGD2EiZW7Q73u2Fky4V1Q\r
30         JNMjSek0ZLdRo2oyKdUHWyWt3rBMMoWgUEXEg=\r
31 Received: by 10.216.220.216 with SMTP id o66mr363682wep.52.1316039035661;\r
32         Wed, 14 Sep 2011 15:23:55 -0700 (PDT)\r
33 Received: from osdor.le-roi-du-couscous.fr ([78.222.14.116])\r
34         by mx.google.com with ESMTPS id h20sm50709wbo.22.2011.09.14.15.23.54\r
35         (version=SSLv3 cipher=OTHER); Wed, 14 Sep 2011 15:23:55 -0700 (PDT)\r
36 Sender: Louis Rilling <lrilling@gmail.com>\r
37 From: Louis Rilling <l.rilling@av7.net>\r
38 To: notmuch@notmuchmail.org\r
39 Subject: [PATCH 3/4] test: Adding non-maildir tags does not move message from\r
40         new to cur\r
41 Date: Thu, 15 Sep 2011 00:23:20 +0200\r
42 Message-Id: <1316039001-32602-4-git-send-email-l.rilling@av7.net>\r
43 X-Mailer: git-send-email 1.7.2.5\r
44 In-Reply-To: <1316039001-32602-1-git-send-email-l.rilling@av7.net>\r
45 References: <1316039001-32602-1-git-send-email-l.rilling@av7.net>\r
46 Cc: Michal Sojka <sojka@os.inf.tu-dresden.de>,\r
47         Austin Clements <amdragon@mit.edu>\r
48 X-BeenThere: notmuch@notmuchmail.org\r
49 X-Mailman-Version: 2.1.13\r
50 Precedence: list\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, 14 Sep 2011 22:23:59 -0000\r
61 \r
62 From: Michal Sojka <sojka@os.inf.tu-dresden.de>\r
63 \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
68 \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
72 \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
75 \r
76 Signed-off-by: Louis Rilling <l.rilling@av7.net>\r
77 ---\r
78  test/maildir-sync |    6 ++++++\r
79  1 files changed, 6 insertions(+), 0 deletions(-)\r
80 \r
81 diff --git a/test/maildir-sync b/test/maildir-sync\r
82 index a60854f..b3e90ae 100755\r
83 --- a/test/maildir-sync\r
84 +++ b/test/maildir-sync\r
85 @@ -88,6 +88,12 @@ test_expect_equal "$output" "No new mail."\r
86  # creating new directories in the mail store, then it should be\r
87  # creating all necessary database state for those directories.\r
88  \r
89 +test_begin_subtest "Adding non-maildir tags does not move message from new to cur"\r
90 +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
91 +notmuch tag +donotmove subject:"Message to stay in new"\r
92 +output=$(cd "$MAIL_DIR"; ls */message-to-stay-in-new*)\r
93 +test_expect_equal_failure "$output" "new/message-to-stay-in-new"\r
94 +\r
95  test_begin_subtest "Removing 'S' flag from existing filename adds 'unread' tag"\r
96  add_message [subject]='"Removing S flag"' [filename]='removing-s-flag:2,S' [dir]=cur\r
97  output=$(notmuch search subject:"Removing S flag" | notmuch_search_sanitize)\r
98 -- \r
99 1.7.2.5\r
100 \r