From d6ba13d061215be6fd7863e138d881e9503c437f Mon Sep 17 00:00:00 2001 From: david Date: Tue, 3 Sep 2013 22:10:13 +2100 Subject: [PATCH] [PATCH] test: update insert tests for new maildir synchronization rules --- 64/bb766ea54d7e7a0aa09446f8cd68daf92fdcd0 | 96 +++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 64/bb766ea54d7e7a0aa09446f8cd68daf92fdcd0 diff --git a/64/bb766ea54d7e7a0aa09446f8cd68daf92fdcd0 b/64/bb766ea54d7e7a0aa09446f8cd68daf92fdcd0 new file mode 100644 index 000000000..b6041e2e4 --- /dev/null +++ b/64/bb766ea54d7e7a0aa09446f8cd68daf92fdcd0 @@ -0,0 +1,96 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 466BE431FD6 + for ; Mon, 2 Sep 2013 18:10:44 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id KZoAUY4Lyue0 for ; + Mon, 2 Sep 2013 18:10:37 -0700 (PDT) +Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155]) + (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 97698431FD2 + for ; Mon, 2 Sep 2013 18:10:37 -0700 (PDT) +Received: from remotemail by yantan.tethera.net with local (Exim 4.80) + (envelope-from ) + id 1VGf8Z-0002XW-54; Mon, 02 Sep 2013 22:10:31 -0300 +Received: (nullmailer pid 3632 invoked by uid 1000); Tue, 03 Sep 2013 + 01:10:27 -0000 +From: david@tethera.net +To: notmuch@notmuchmail.org +Subject: [PATCH] test: update insert tests for new maildir synchronization + rules +Date: Mon, 2 Sep 2013 22:10:13 -0300 +Message-Id: <1378170613-3584-1-git-send-email-david@tethera.net> +X-Mailer: git-send-email 1.8.3.2 +In-Reply-To: <1355952747-27350-4-git-send-email-sojkam1@fel.cvut.cz> +References: <1355952747-27350-4-git-send-email-sojkam1@fel.cvut.cz> +Cc: David Bremner +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Tue, 03 Sep 2013 01:10:44 -0000 + +From: David Bremner + +As of id:1355952747-27350-4-git-send-email-sojkam1@fel.cvut.cz +we are more conservative about moving messages from ./new to ./cur. +This updates the insert tests to match +--- + +Hopefully this makes sense, and is not just papering over a real +problem that should be fixed. + + test/insert | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/test/insert b/test/insert +index 021edb6..1718120 100755 +--- a/test/insert ++++ b/test/insert +@@ -82,7 +82,7 @@ gen_insert_msg + notmuch insert --folder=Drafts < "$gen_msg_filename" + output=$(notmuch search --output=files folder:Drafts) + dirname=$(dirname "$output") +-test_expect_equal "$dirname" "$MAIL_DIR/Drafts/cur" ++test_expect_equal "$dirname" "$MAIL_DIR/Drafts/new" + + test_begin_subtest "Insert message into folder, add/remove tags" + gen_insert_msg +@@ -99,14 +99,14 @@ gen_insert_msg + notmuch insert --folder=F --create-folder +folder < "$gen_msg_filename" + output=$(notmuch search --output=files folder:F tag:folder) + basename=$(basename "$output") +-test_expect_equal_file "$gen_msg_filename" "$MAIL_DIR/F/cur/${basename}" ++test_expect_equal_file "$gen_msg_filename" "$MAIL_DIR/F/new/${basename}" + + test_begin_subtest "Insert message, create subfolder" + gen_insert_msg + notmuch insert --folder=F/G/H/I/J --create-folder +folder < "$gen_msg_filename" + output=$(notmuch search --output=files folder:F/G/H/I/J tag:folder) + basename=$(basename "$output") +-test_expect_equal_file "$gen_msg_filename" "${MAIL_DIR}/F/G/H/I/J/cur/${basename}" ++test_expect_equal_file "$gen_msg_filename" "${MAIL_DIR}/F/G/H/I/J/new/${basename}" + + test_begin_subtest "Insert message, create existing subfolder" + gen_insert_msg +-- +1.8.3.2 + -- 2.26.2