Re: [PATCH 1/4] test: Add broken test for tag synchronization on files delivered...
authorJani Nikula <jani@nikula.org>
Mon, 4 Jun 2012 07:10:03 +0000 (07:10 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:47:36 +0000 (09:47 -0800)
f9/bc883d9a83cf4843246380d4460088511b1e4a [new file with mode: 0644]

diff --git a/f9/bc883d9a83cf4843246380d4460088511b1e4a b/f9/bc883d9a83cf4843246380d4460088511b1e4a
new file mode 100644 (file)
index 0000000..0169881
--- /dev/null
@@ -0,0 +1,116 @@
+Return-Path: <jani@nikula.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 9D475431FB6\r
+       for <notmuch@notmuchmail.org>; Mon,  4 Jun 2012 00:10:07 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id ygikBYOptkdx for <notmuch@notmuchmail.org>;\r
+       Mon,  4 Jun 2012 00:10:07 -0700 (PDT)\r
+Received: from mail-vb0-f53.google.com (mail-vb0-f53.google.com\r
+       [209.85.212.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id F0376431FAF\r
+       for <notmuch@notmuchmail.org>; Mon,  4 Jun 2012 00:10:06 -0700 (PDT)\r
+Received: by vbbfc26 with SMTP id fc26so3923405vbb.26\r
+       for <notmuch@notmuchmail.org>; Mon, 04 Jun 2012 00:10:06 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=google.com; s=20120113;\r
+       h=from:to:subject:in-reply-to:references:user-agent:date:message-id\r
+       :mime-version:content-type:x-gm-message-state;\r
+       bh=9p4y8LO8kpr9PRjACrAQxpYm/jbecmjjZGGSovzc23M=;\r
+       b=lZ3mfDYdE8VnpQl8eIRCDgeOw9wloPny8eQo4f2E2BQwVjQ5EkHhz3PeOJjhoxyxDL\r
+       KFKfPsrZfBkgR3vXkDbwRKs00QmFe5/fGzJqFXHMeer0C2RpQ6FyGvqdp1ibLjdUB0Rn\r
+       y1yfCq8f6OaGYje1RGjUNUY3AnwORr8uoUte/j/D2/mlRr6jgRYD8VUs5fJAIgaNIAaJ\r
+       JeRqoqcpzg5hd26x6cYTBZwhQk9Gjmw0i5rnoukibBqPL9i0moXUhOTJHK18GLQSRz5M\r
+       CmDXqEKZ3PbuLSBtorpI1hdNO8AsssFCWvAKBGi3/AIcKBPIlOl3hfd4iBJVONoif9U5\r
+       0G4A==\r
+Received: by 10.52.94.36 with SMTP id cz4mr10025053vdb.10.1338793805963;\r
+       Mon, 04 Jun 2012 00:10:05 -0700 (PDT)\r
+Received: from localhost (nikula.org. [92.243.24.172])\r
+       by mx.google.com with ESMTPS id g10sm16106772vdk.2.2012.06.04.00.10.04\r
+       (version=SSLv3 cipher=OTHER); Mon, 04 Jun 2012 00:10:05 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: Austin Clements <amdragon@MIT.EDU>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH 1/4] test: Add broken test for tag synchronization on\r
+       files delivered to new/\r
+In-Reply-To: <1338742656-11640-2-git-send-email-amdragon@mit.edu>\r
+References: <1338742656-11640-1-git-send-email-amdragon@mit.edu>\r
+       <1338742656-11640-2-git-send-email-amdragon@mit.edu>\r
+User-Agent: Notmuch/0.13+9~ga1668d0 (http://notmuchmail.org) Emacs/23.1.1\r
+       (i686-pc-linux-gnu)\r
+Date: Mon, 04 Jun 2012 07:10:03 +0000\r
+Message-ID: <87k3znr1ro.fsf@nikula.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-Gm-Message-State:\r
+ ALoCoQmBz6Lh3AFYtzMQ8ujHzqQiAhk/BGFkmQNzzLORvoJSs6jMuCjpGKXqA42Wtx6LMGfHukzw\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 04 Jun 2012 07:10:07 -0000\r
+\r
+On Sun, 03 Jun 2012, Austin Clements <amdragon@MIT.EDU> wrote:\r
+> Currently, notmuch new only synchronizs maildir flags to tags for\r
+\r
++e to synchronizs.\r
+\r
+> files that have an "info" part.  However, in maildir, new mail doesn't\r
+> gain the info part until it moves from new/ to cur/.  Hence, even\r
+> though mail in new/ doesn't have an info part, it is still a maildir\r
+> message and thus has maildir flags (though none of them set).\r
+>\r
+> The most visible effect of not synchronizing maildir flags for\r
+> messages in new/ is that newly delivered messages don't get the unread\r
+> tag (unless it is assigned by some other mechanism, like new.tags).\r
+>\r
+> This patch does *not* modify the test for messages in cur/ that do not\r
+> have an "info" part.  Unlike a message in new/, a message in cur/\r
+> without an info part is no longer a maildir message, and thus\r
+> shouldn't be subject to maildir flag synchronization.\r
+> ---\r
+>  test/maildir-sync |   10 ++++++++++\r
+>  1 file changed, 10 insertions(+)\r
+>\r
+> diff --git a/test/maildir-sync b/test/maildir-sync\r
+> index d72ec07..6360fd2 100755\r
+> --- a/test/maildir-sync\r
+> +++ b/test/maildir-sync\r
+> @@ -166,4 +166,14 @@ add_message [subject]='"Non-compliant maildir info"' [dir]=cur [filename]='non-c\r
+>  notmuch tag +unread +draft -flagged subject:"Non-compliant maildir info"\r
+>  test_expect_equal "$(cd $MAIL_DIR/cur/; ls non-compliant*)" "non-compliant-maildir-info:2,These-are-not-flags-in-ASCII-order-donottouch"\r
+>  \r
+> +test_begin_subtest "Files in new/ get default synchronized tags"\r
+> +test_subtest_known_broken\r
+> +OLDCONFIG=$(notmuch config get new.tags)\r
+> +notmuch config set new.tags test\r
+> +add_message [subject]='"File in new/"' [dir]=new [filename]='file-in-new'\r
+> +notmuch config set new.tags $OLDCONFIG\r
+> +notmuch search 'subject:"File in new"' | notmuch_search_sanitize > output\r
+> +test_expect_equal "$(< output)" \\r
+> +"thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; File in new/ (test unread)"\r
+> +\r
+>  test_done\r
+> -- \r
+> 1.7.10\r
+>\r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r