From cf08295c503a2cefc4c51c5398f3fc1159521ff1 Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Thu, 2 Nov 2017 21:08:57 +0200 Subject: [PATCH] test: test notmuch insert --folder="" Test insert into top level folder. --- test/T070-insert.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/T070-insert.sh b/test/T070-insert.sh index f1650e62..40519bb2 100755 --- a/test/T070-insert.sh +++ b/test/T070-insert.sh @@ -132,6 +132,13 @@ output=$(notmuch search --output=files path:Drafts/new) dirname=$(dirname "$output") test_expect_equal "$dirname" "$MAIL_DIR/Drafts/new" +test_begin_subtest "Insert message into top level folder" +gen_insert_msg +notmuch insert --folder="" < "$gen_msg_filename" +output=$(notmuch search --output=files id:${gen_msg_id}) +dirname=$(dirname "$output") +test_expect_equal "$dirname" "$MAIL_DIR/new" + test_begin_subtest "Insert message into folder with trailing /" gen_insert_msg notmuch insert --folder=Drafts/ < "$gen_msg_filename"