1 Return-Path: <jani@nikula.org>
\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 9D475431FB6
\r
6 for <notmuch@notmuchmail.org>; Mon, 4 Jun 2012 00:10:07 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\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 ygikBYOptkdx for <notmuch@notmuchmail.org>;
\r
16 Mon, 4 Jun 2012 00:10:07 -0700 (PDT)
\r
17 Received: from mail-vb0-f53.google.com (mail-vb0-f53.google.com
\r
18 [209.85.212.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id F0376431FAF
\r
21 for <notmuch@notmuchmail.org>; Mon, 4 Jun 2012 00:10:06 -0700 (PDT)
\r
22 Received: by vbbfc26 with SMTP id fc26so3923405vbb.26
\r
23 for <notmuch@notmuchmail.org>; Mon, 04 Jun 2012 00:10:06 -0700 (PDT)
\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
25 d=google.com; s=20120113;
\r
26 h=from:to:subject:in-reply-to:references:user-agent:date:message-id
\r
27 :mime-version:content-type:x-gm-message-state;
\r
28 bh=9p4y8LO8kpr9PRjACrAQxpYm/jbecmjjZGGSovzc23M=;
\r
29 b=lZ3mfDYdE8VnpQl8eIRCDgeOw9wloPny8eQo4f2E2BQwVjQ5EkHhz3PeOJjhoxyxDL
\r
30 KFKfPsrZfBkgR3vXkDbwRKs00QmFe5/fGzJqFXHMeer0C2RpQ6FyGvqdp1ibLjdUB0Rn
\r
31 y1yfCq8f6OaGYje1RGjUNUY3AnwORr8uoUte/j/D2/mlRr6jgRYD8VUs5fJAIgaNIAaJ
\r
32 JeRqoqcpzg5hd26x6cYTBZwhQk9Gjmw0i5rnoukibBqPL9i0moXUhOTJHK18GLQSRz5M
\r
33 CmDXqEKZ3PbuLSBtorpI1hdNO8AsssFCWvAKBGi3/AIcKBPIlOl3hfd4iBJVONoif9U5
\r
35 Received: by 10.52.94.36 with SMTP id cz4mr10025053vdb.10.1338793805963;
\r
36 Mon, 04 Jun 2012 00:10:05 -0700 (PDT)
\r
37 Received: from localhost (nikula.org. [92.243.24.172])
\r
38 by mx.google.com with ESMTPS id g10sm16106772vdk.2.2012.06.04.00.10.04
\r
39 (version=SSLv3 cipher=OTHER); Mon, 04 Jun 2012 00:10:05 -0700 (PDT)
\r
40 From: Jani Nikula <jani@nikula.org>
\r
41 To: Austin Clements <amdragon@MIT.EDU>, notmuch@notmuchmail.org
\r
42 Subject: Re: [PATCH 1/4] test: Add broken test for tag synchronization on
\r
43 files delivered to new/
\r
44 In-Reply-To: <1338742656-11640-2-git-send-email-amdragon@mit.edu>
\r
45 References: <1338742656-11640-1-git-send-email-amdragon@mit.edu>
\r
46 <1338742656-11640-2-git-send-email-amdragon@mit.edu>
\r
47 User-Agent: Notmuch/0.13+9~ga1668d0 (http://notmuchmail.org) Emacs/23.1.1
\r
49 Date: Mon, 04 Jun 2012 07:10:03 +0000
\r
50 Message-ID: <87k3znr1ro.fsf@nikula.org>
\r
52 Content-Type: text/plain; charset=us-ascii
\r
54 ALoCoQmBz6Lh3AFYtzMQ8ujHzqQiAhk/BGFkmQNzzLORvoJSs6jMuCjpGKXqA42Wtx6LMGfHukzw
\r
55 X-BeenThere: notmuch@notmuchmail.org
\r
56 X-Mailman-Version: 2.1.13
\r
58 List-Id: "Use and development of the notmuch mail system."
\r
59 <notmuch.notmuchmail.org>
\r
60 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
61 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
62 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
63 List-Post: <mailto:notmuch@notmuchmail.org>
\r
64 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
65 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
66 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
67 X-List-Received-Date: Mon, 04 Jun 2012 07:10:07 -0000
\r
69 On Sun, 03 Jun 2012, Austin Clements <amdragon@MIT.EDU> wrote:
\r
70 > Currently, notmuch new only synchronizs maildir flags to tags for
\r
74 > files that have an "info" part. However, in maildir, new mail doesn't
\r
75 > gain the info part until it moves from new/ to cur/. Hence, even
\r
76 > though mail in new/ doesn't have an info part, it is still a maildir
\r
77 > message and thus has maildir flags (though none of them set).
\r
79 > The most visible effect of not synchronizing maildir flags for
\r
80 > messages in new/ is that newly delivered messages don't get the unread
\r
81 > tag (unless it is assigned by some other mechanism, like new.tags).
\r
83 > This patch does *not* modify the test for messages in cur/ that do not
\r
84 > have an "info" part. Unlike a message in new/, a message in cur/
\r
85 > without an info part is no longer a maildir message, and thus
\r
86 > shouldn't be subject to maildir flag synchronization.
\r
88 > test/maildir-sync | 10 ++++++++++
\r
89 > 1 file changed, 10 insertions(+)
\r
91 > diff --git a/test/maildir-sync b/test/maildir-sync
\r
92 > index d72ec07..6360fd2 100755
\r
93 > --- a/test/maildir-sync
\r
94 > +++ b/test/maildir-sync
\r
95 > @@ -166,4 +166,14 @@ add_message [subject]='"Non-compliant maildir info"' [dir]=cur [filename]='non-c
\r
96 > notmuch tag +unread +draft -flagged subject:"Non-compliant maildir info"
\r
97 > test_expect_equal "$(cd $MAIL_DIR/cur/; ls non-compliant*)" "non-compliant-maildir-info:2,These-are-not-flags-in-ASCII-order-donottouch"
\r
99 > +test_begin_subtest "Files in new/ get default synchronized tags"
\r
100 > +test_subtest_known_broken
\r
101 > +OLDCONFIG=$(notmuch config get new.tags)
\r
102 > +notmuch config set new.tags test
\r
103 > +add_message [subject]='"File in new/"' [dir]=new [filename]='file-in-new'
\r
104 > +notmuch config set new.tags $OLDCONFIG
\r
105 > +notmuch search 'subject:"File in new"' | notmuch_search_sanitize > output
\r
106 > +test_expect_equal "$(< output)" \
\r
107 > +"thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; File in new/ (test unread)"
\r
113 > _______________________________________________
\r
114 > notmuch mailing list
\r
115 > notmuch@notmuchmail.org
\r
116 > http://notmuchmail.org/mailman/listinfo/notmuch
\r