notmuch.el: controlling what does and doesn't get expanded in searches
[notmuch-archives.git] / 60 / dc96886113392eba52b32a1c1c17b69b606ece
1 Return-Path: <amdragon@mit.edu>\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 D1AD3431FBF\r
6         for <notmuch@notmuchmail.org>; Sat,  9 Jun 2012 12:14: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.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 AScWBoe4KMxV for <notmuch@notmuchmail.org>;\r
16         Sat,  9 Jun 2012 12:14:58 -0700 (PDT)\r
17 Received: from dmz-mailsec-scanner-6.mit.edu (DMZ-MAILSEC-SCANNER-6.MIT.EDU\r
18         [18.7.68.35])\r
19         by olra.theworths.org (Postfix) with ESMTP id 691B3431FC0\r
20         for <notmuch@notmuchmail.org>; Sat,  9 Jun 2012 12:14:55 -0700 (PDT)\r
21 X-AuditID: 12074423-b7f396d0000008f4-31-4fd3a0ae42fc\r
22 Received: from mailhub-auth-1.mit.edu ( [18.9.21.35])\r
23         by dmz-mailsec-scanner-6.mit.edu (Symantec Messaging Gateway) with SMTP\r
24         id 3C.C4.02292.EA0A3DF4; Sat,  9 Jun 2012 15:14:54 -0400 (EDT)\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
26         by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id q59JErQX015440; \r
27         Sat, 9 Jun 2012 15:14:53 -0400\r
28 Received: from drake.dyndns.org\r
29         (209-6-116-242.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com\r
30         [209.6.116.242]) (authenticated bits=0)\r
31         (User authenticated as amdragon@ATHENA.MIT.EDU)\r
32         by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q59JEqLI026103\r
33         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
34         Sat, 9 Jun 2012 15:14:53 -0400 (EDT)\r
35 Received: from amthrax by drake.dyndns.org with local (Exim 4.77)\r
36         (envelope-from <amdragon@mit.edu>)\r
37         id 1SdR75-0000wn-Kg; Sat, 09 Jun 2012 15:14:19 -0400\r
38 From: Austin Clements <amdragon@MIT.EDU>\r
39 To: notmuch@notmuchmail.org\r
40 Subject: [PATCH v2 1/5] test: Add broken test for tag synchronization on files\r
41         delivered to new/\r
42 Date: Sat,  9 Jun 2012 15:14:14 -0400\r
43 Message-Id: <1339269258-3542-2-git-send-email-amdragon@mit.edu>\r
44 X-Mailer: git-send-email 1.7.10\r
45 In-Reply-To: <1339269258-3542-1-git-send-email-amdragon@mit.edu>\r
46 References: <1338742656-11640-1-git-send-email-amdragon@mit.edu>\r
47         <1339269258-3542-1-git-send-email-amdragon@mit.edu>\r
48 X-Brightmail-Tracker:\r
49  H4sIAAAAAAAAA+NgFjrOIsWRmVeSWpSXmKPExsUixCmqrLtuwWV/g7nnjC2apjtbXL85k9mB\r
50         yePW/dfsHs9W3WIOYIrisklJzcksSy3St0vgyrg+9TVbwR6+ipXP7zM3ME7g6WLk5JAQMJF4\r
51         MOkwO4QtJnHh3no2EFtIYB+jxJa/2V2MXED2ekaJ1mszGSGch0wSOyavZIVw5jJKnP5+lwmk\r
52         hU1AQ2Lb/uWMILaIgLTEzruzgYo4OJgFzCVutsSBhIUFEiT2LGoFK2cRUJVYOm8PM4jNK2Av\r
53         0btxEiPEFfIST+/3gV3BKeAg8ez7dEaIi8oknp2ezTaBkX8BI8MqRtmU3Crd3MTMnOLUZN3i\r
54         5MS8vNQiXTO93MwSvdSU0k2MoDBid1HewfjnoNIhRgEORiUeXi35S/5CrIllxZW5hxglOZiU\r
55         RHm/zL/sL8SXlJ9SmZFYnBFfVJqTWnyIUYKDWUmEdysTUDlvSmJlVWpRPkxKmoNFSZw3heus\r
56         v5BAemJJanZqakFqEUxWhoNDSYLXCBgvQoJFqempFWmZOSUIaSYOTpDhPEDD34As5i0uSMwt\r
57         zkyHyJ9i1OU4PenSdUYhlrz8vFQpcV5TkEECIEUZpXlwc2Dx/4pRHOgtYd6fIKN4gKkDbtIr\r
58         oCVMQEtaoy6ALClJREhJNTCqcyTszAjKzvk0ufzOyy1yRT0nxF8/U+5QPXVY/K6H3r5LFya2\r
59         1r/qPXLP9NS6i7zbTHJ/SqVd8nh5dUthbV299kTHi6kunId7hH6pNh+UdpY3OHGf/9KN901s\r
60         TFsC/X4VKhts2+6gLvRlNt/FSra9Z06f1/m298OUM9IP5qZdsdto+bNYh2WuEktxRqKhFnNR\r
61         cSIA6NS1P9oCAAA=\r
62 X-BeenThere: notmuch@notmuchmail.org\r
63 X-Mailman-Version: 2.1.13\r
64 Precedence: list\r
65 List-Id: "Use and development of the notmuch mail system."\r
66         <notmuch.notmuchmail.org>\r
67 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
68         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
69 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
70 List-Post: <mailto:notmuch@notmuchmail.org>\r
71 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
72 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
73         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
74 X-List-Received-Date: Sat, 09 Jun 2012 19:14:59 -0000\r
75 \r
76 Currently, notmuch new only synchronizes maildir flags to tags for\r
77 files that have an "info" part.  However, in maildir, new mail doesn't\r
78 gain the info part until it moves from new/ to cur/.  Hence, even\r
79 though mail in new/ doesn't have an info part, it is still a maildir\r
80 message and thus has maildir flags (though none of them set).\r
81 \r
82 The most visible effect of not synchronizing maildir flags for\r
83 messages in new/ is that newly delivered messages don't get the unread\r
84 tag (unless it is assigned by some other mechanism, like new.tags).\r
85 \r
86 This patch does *not* modify the test for messages in cur/ that do not\r
87 have an "info" part.  Unlike a message in new/, a message in cur/\r
88 without an info part is no longer a maildir message, and thus\r
89 shouldn't be subject to maildir flag synchronization.\r
90 ---\r
91  test/maildir-sync |   10 ++++++++++\r
92  1 file changed, 10 insertions(+)\r
93 \r
94 diff --git a/test/maildir-sync b/test/maildir-sync\r
95 index d72ec07..6360fd2 100755\r
96 --- a/test/maildir-sync\r
97 +++ b/test/maildir-sync\r
98 @@ -166,4 +166,14 @@ add_message [subject]='"Non-compliant maildir info"' [dir]=cur [filename]='non-c\r
99  notmuch tag +unread +draft -flagged subject:"Non-compliant maildir info"\r
100  test_expect_equal "$(cd $MAIL_DIR/cur/; ls non-compliant*)" "non-compliant-maildir-info:2,These-are-not-flags-in-ASCII-order-donottouch"\r
101  \r
102 +test_begin_subtest "Files in new/ get default synchronized tags"\r
103 +test_subtest_known_broken\r
104 +OLDCONFIG=$(notmuch config get new.tags)\r
105 +notmuch config set new.tags test\r
106 +add_message [subject]='"File in new/"' [dir]=new [filename]='file-in-new'\r
107 +notmuch config set new.tags $OLDCONFIG\r
108 +notmuch search 'subject:"File in new"' | notmuch_search_sanitize > output\r
109 +test_expect_equal "$(< output)" \\r
110 +"thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; File in new/ (test unread)"\r
111 +\r
112  test_done\r
113 -- \r
114 1.7.10\r
115 \r