--- /dev/null
+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 52E50431FAF\r
+ for <notmuch@notmuchmail.org>; Wed, 1 Jan 2014 07:20:25 -0800 (PST)\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 UyhqKIQv4xN9 for <notmuch@notmuchmail.org>;\r
+ Wed, 1 Jan 2014 07:20:19 -0800 (PST)\r
+Received: from mail-ea0-f169.google.com (mail-ea0-f169.google.com\r
+ [209.85.215.169]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id A3730431FC0\r
+ for <notmuch@notmuchmail.org>; Wed, 1 Jan 2014 07:20:19 -0800 (PST)\r
+Received: by mail-ea0-f169.google.com with SMTP id l9so5118126eaj.14\r
+ for <notmuch@notmuchmail.org>; Wed, 01 Jan 2014 07:20:17 -0800 (PST)\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:date:message-id;\r
+ bh=q7R8ynCReNy2I8cqgLsftM451AfZUK9x3DOFtOViUSU=;\r
+ b=ZkTNGrXjbYG/3+C6LwEOsN4sAwajPWQeeOsnkOlUVfedTdo7C89FLrXGtfs6w76Pyz\r
+ 7hF46caZ1Rde8FdGdxSf9k2jxvkfMTNXhFXszHg9NBkJG7pIeb2i1lEgeTLVhHktqcK2\r
+ xubhxR/QTUvUXIudjEx/D8eBpLOa81f870MHkmDL9OYnz7Fz4lr+eVDlz4SOoq6yyKyh\r
+ S4DWd1VGlLDiiwyob9jFwM02sjRVNFRuWpumL3cEk/8AwN1OrWtqZ6Vq54s6hi4lTG8N\r
+ C5HDc8aV9SlLmcudtc2MVduUW14c/XMNcqBVTNDVeY0ib0EasaB2+WQbEWZDDFVMCd8j\r
+ TR4w==\r
+X-Gm-Message-State:\r
+ ALoCoQko9XsHL+fk5Q9EUR/cTU5mAvroqqaPlQSH5F+JfLJCBZVr9//Mi7sGRvPWveIq5Y+EUpsP\r
+X-Received: by 10.15.10.2 with SMTP id f2mr4554561eet.112.1388589616928;\r
+ Wed, 01 Jan 2014 07:20:16 -0800 (PST)\r
+Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi.\r
+ [88.195.111.91]) by mx.google.com with ESMTPSA id\r
+ g7sm127838760eet.12.2014.01.01.07.20.15 for <multiple recipients>\r
+ (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+ Wed, 01 Jan 2014 07:20:16 -0800 (PST)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 1/2] test: notmuch insert with maildir.synchronize_flags=false\r
+Date: Wed, 1 Jan 2014 17:20:13 +0200\r
+Message-Id: <1388589614-19671-1-git-send-email-jani@nikula.org>\r
+X-Mailer: git-send-email 1.8.5.2\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: Wed, 01 Jan 2014 15:20:25 -0000\r
+\r
+Known broken, notmuch insert does not respect the config option.\r
+---\r
+ test/insert | 11 +++++++++++\r
+ 1 file changed, 11 insertions(+)\r
+\r
+diff --git a/test/insert b/test/insert\r
+index 550b413..9283e70 100755\r
+--- a/test/insert\r
++++ b/test/insert\r
+@@ -113,6 +113,17 @@ output=$(notmuch search --output=files id:$gen_msg_id)\r
+ dirname=$(dirname "$output")\r
+ test_expect_equal "$dirname" "$MAIL_DIR/cur"\r
+ \r
++test_begin_subtest "Insert message with maildir sync off goes to new/"\r
++test_subtest_known_broken\r
++OLDCONFIG=$(notmuch config get maildir.synchronize_flags)\r
++notmuch config set maildir.synchronize_flags false\r
++gen_insert_msg\r
++notmuch insert +flagged < "$gen_msg_filename"\r
++output=$(notmuch search --output=files id:$gen_msg_id)\r
++dirname=$(dirname "$output")\r
++notmuch config set maildir.synchronize_flags $OLDCONFIG\r
++test_expect_equal "$dirname" "$MAIL_DIR/new"\r
++\r
+ test_begin_subtest "Insert message into folder"\r
+ gen_insert_msg\r
+ notmuch insert --folder=Drafts < "$gen_msg_filename"\r
+-- \r
+1.8.5.2\r
+\r