Re: [PATCH] test: update insert tests for new maildir synchronization rules
authorJani Nikula <jani@nikula.org>
Tue, 3 Sep 2013 05:22:18 +0000 (08:22 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:56:51 +0000 (09:56 -0800)
95/3308615df344009b21a6dff6b0ee2bb321e30a [new file with mode: 0644]

diff --git a/95/3308615df344009b21a6dff6b0ee2bb321e30a b/95/3308615df344009b21a6dff6b0ee2bb321e30a
new file mode 100644 (file)
index 0000000..8a78284
--- /dev/null
@@ -0,0 +1,132 @@
+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 19E62429E25\r
+       for <notmuch@notmuchmail.org>; Mon,  2 Sep 2013 22:22:37 -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 ckSbAXnp3vw4 for <notmuch@notmuchmail.org>;\r
+       Mon,  2 Sep 2013 22:22:22 -0700 (PDT)\r
+Received: from mail-ea0-f170.google.com (mail-ea0-f170.google.com\r
+       [209.85.215.170]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 2A133431FDD\r
+       for <notmuch@notmuchmail.org>; Mon,  2 Sep 2013 22:22:22 -0700 (PDT)\r
+Received: by mail-ea0-f170.google.com with SMTP id h14so2736478eak.29\r
+       for <notmuch@notmuchmail.org>; Mon, 02 Sep 2013 22:22:20 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=1e100.net; s=20130820;\r
+       h=x-gm-message-state:from:to:cc:subject:in-reply-to:references\r
+       :user-agent:date:message-id:mime-version:content-type;\r
+       bh=774inoBzsvYpQLgZ3pkxfsePb5Zj+BKQFctTBX9jkHA=;\r
+       b=Xj+4aZFvzRJCLSFQenb1VNHmKsZcJUvRxT3rVDyRTlsgSdoNey0d2AtoGK/wDT0rS/\r
+       fcO/ZIbW9kPI+S+8o7iVIuOwI2clJmR0wOv1Tr+o4ZgbzvlzyoRnN7g+dLA//9HszP/l\r
+       /adZlC83W60KzFS8cCLfvp7//FIYoEGpTeeNFHg/1o5wOya6JdtA57+DWA3PSo2OASDn\r
+       kz373g0qZdRYUpWYc1wAY1DBIh0LTU6T3OPxJZIrZ6uI5Jv7kUzbbTLsugz00eapixSU\r
+       CM2BZlq6YQcwopwAtr5pbA2pTINEwt/ymCyiWt8BEx8BCUEF4oRoTrtlHa8oRECR9M8J\r
+       IT1A==\r
+X-Gm-Message-State:\r
+ ALoCoQnWEDSc8ZMNzGRoXWXsn3mGiJrfTvVx0FvqySLlFgEm9Icq/LAafOKuDQkzSUxDB70jsBo2\r
+X-Received: by 10.14.107.137 with SMTP id o9mr4962eeg.86.1378185739531;\r
+       Mon, 02 Sep 2013 22:22:19 -0700 (PDT)\r
+Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi.\r
+       [88.195.111.91])\r
+       by mx.google.com with ESMTPSA id b45sm28246810eef.4.1969.12.31.16.00.00\r
+       (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+       Mon, 02 Sep 2013 22:22:18 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: david@tethera.net, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] test: update insert tests for new maildir synchronization\r
+       rules\r
+In-Reply-To: <1378170613-3584-1-git-send-email-david@tethera.net>\r
+References: <1355952747-27350-4-git-send-email-sojkam1@fel.cvut.cz>\r
+       <1378170613-3584-1-git-send-email-david@tethera.net>\r
+User-Agent: Notmuch/0.16+39~gf3963b0 (http://notmuchmail.org) Emacs/24.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Tue, 03 Sep 2013 08:22:18 +0300\r
+Message-ID: <87ob8ao4xh.fsf@nikula.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+Cc: David Bremner <bremner@debian.org>\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: Tue, 03 Sep 2013 05:22:38 -0000\r
+\r
+On Tue, 03 Sep 2013, david@tethera.net wrote:\r
+> From: David Bremner <bremner@debian.org>\r
+>\r
+> As of id:1355952747-27350-4-git-send-email-sojkam1@fel.cvut.cz\r
+> we are more conservative about moving messages from ./new to ./cur.\r
+> This updates the insert tests to match\r
+> ---\r
+>\r
+> Hopefully this makes sense, and is not just papering over a real\r
+> problem that should be fixed.\r
+\r
+LGTM. I sent some additional tests on top.\r
+\r
+Jani.\r
+\r
+\r
+\r
+>\r
+>  test/insert | 6 +++---\r
+>  1 file changed, 3 insertions(+), 3 deletions(-)\r
+>\r
+> diff --git a/test/insert b/test/insert\r
+> index 021edb6..1718120 100755\r
+> --- a/test/insert\r
+> +++ b/test/insert\r
+> @@ -82,7 +82,7 @@ gen_insert_msg\r
+>  notmuch insert --folder=Drafts < "$gen_msg_filename"\r
+>  output=$(notmuch search --output=files folder:Drafts)\r
+>  dirname=$(dirname "$output")\r
+> -test_expect_equal "$dirname" "$MAIL_DIR/Drafts/cur"\r
+> +test_expect_equal "$dirname" "$MAIL_DIR/Drafts/new"\r
+>  \r
+>  test_begin_subtest "Insert message into folder, add/remove tags"\r
+>  gen_insert_msg\r
+> @@ -99,14 +99,14 @@ gen_insert_msg\r
+>  notmuch insert --folder=F --create-folder +folder < "$gen_msg_filename"\r
+>  output=$(notmuch search --output=files folder:F tag:folder)\r
+>  basename=$(basename "$output")\r
+> -test_expect_equal_file "$gen_msg_filename" "$MAIL_DIR/F/cur/${basename}"\r
+> +test_expect_equal_file "$gen_msg_filename" "$MAIL_DIR/F/new/${basename}"\r
+>  \r
+>  test_begin_subtest "Insert message, create subfolder"\r
+>  gen_insert_msg\r
+>  notmuch insert --folder=F/G/H/I/J --create-folder +folder < "$gen_msg_filename"\r
+>  output=$(notmuch search --output=files folder:F/G/H/I/J tag:folder)\r
+>  basename=$(basename "$output")\r
+> -test_expect_equal_file "$gen_msg_filename" "${MAIL_DIR}/F/G/H/I/J/cur/${basename}"\r
+> +test_expect_equal_file "$gen_msg_filename" "${MAIL_DIR}/F/G/H/I/J/new/${basename}"\r
+>  \r
+>  test_begin_subtest "Insert message, create existing subfolder"\r
+>  gen_insert_msg\r
+> -- \r
+> 1.8.3.2\r
+>\r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r
+\r
+-- \r
+Jani\r