test: notmuch insert with maildir.synchronize_flags=false
authorJani Nikula <jani@nikula.org>
Wed, 1 Jan 2014 15:20:13 +0000 (17:20 +0200)
committerDavid Bremner <david@tethera.net>
Fri, 3 Jan 2014 11:12:47 +0000 (07:12 -0400)
Known broken, notmuch insert does not respect the config option.

test/insert

index 550b41329b5968168367b801eb108fd2ee5b80d9..9283e70ba3ca3c2a8472a25395ca742507a8a8d8 100755 (executable)
@@ -113,6 +113,17 @@ output=$(notmuch search --output=files id:$gen_msg_id)
 dirname=$(dirname "$output")
 test_expect_equal "$dirname" "$MAIL_DIR/cur"
 
+test_begin_subtest "Insert message with maildir sync off goes to new/"
+test_subtest_known_broken
+OLDCONFIG=$(notmuch config get maildir.synchronize_flags)
+notmuch config set maildir.synchronize_flags false
+gen_insert_msg
+notmuch insert +flagged < "$gen_msg_filename"
+output=$(notmuch search --output=files id:$gen_msg_id)
+dirname=$(dirname "$output")
+notmuch config set maildir.synchronize_flags $OLDCONFIG
+test_expect_equal "$dirname" "$MAIL_DIR/new"
+
 test_begin_subtest "Insert message into folder"
 gen_insert_msg
 notmuch insert --folder=Drafts < "$gen_msg_filename"