X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2Finsert;fp=test%2Finsert;h=9283e70ba3ca3c2a8472a25395ca742507a8a8d8;hb=b00a62b3d9052efb6b2c93a1f970c264fa8c4402;hp=550b41329b5968168367b801eb108fd2ee5b80d9;hpb=e36284d72df4a9f130bfd07290e068ff2550384b;p=notmuch diff --git a/test/insert b/test/insert index 550b4132..9283e70b 100755 --- a/test/insert +++ b/test/insert @@ -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"