mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
test: notmuch insert with maildir.synchronize_flags=false
Known broken, notmuch insert does not respect the config option.
This commit is contained in:
parent
e36284d72d
commit
b00a62b3d9
1 changed files with 11 additions and 0 deletions
11
test/insert
11
test/insert
|
@ -113,6 +113,17 @@ output=$(notmuch search --output=files id:$gen_msg_id)
|
||||||
dirname=$(dirname "$output")
|
dirname=$(dirname "$output")
|
||||||
test_expect_equal "$dirname" "$MAIL_DIR/cur"
|
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"
|
test_begin_subtest "Insert message into folder"
|
||||||
gen_insert_msg
|
gen_insert_msg
|
||||||
notmuch insert --folder=Drafts < "$gen_msg_filename"
|
notmuch insert --folder=Drafts < "$gen_msg_filename"
|
||||||
|
|
Loading…
Reference in a new issue