X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2Fmaildir-sync;h=d3931a1f84d2bc647a4fbb0d10afafda642ba8e3;hb=f6ec7ca78f867c2ae27d0dba154a2395ccf15f52;hp=063c4a7622c8363e997bf222b084ae329631e40e;hpb=882b994c173475f8973d5f5a1c0d1c25e4f93818;p=notmuch diff --git a/test/maildir-sync b/test/maildir-sync index 063c4a76..d3931a1f 100755 --- a/test/maildir-sync +++ b/test/maildir-sync @@ -12,11 +12,6 @@ filter_show_json() { echo } -cat >> "$NOTMUCH_CONFIG" < output +notmuch search subject:"Duplicated message" | notmuch_search_sanitize >> output +test_expect_equal "$(< output)" "No new mail. +thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Duplicated message (inbox replied)" + +test_begin_subtest "Adding duplicate message without flags does not remove tags" +cp "$MAIL_DIR/cur/duplicated-message-copy:2,RS" "$MAIL_DIR/cur/duplicated-message-another-copy:2," +increment_mtime $MAIL_DIR/cur +NOTMUCH_NEW > output +notmuch search subject:"Duplicated message" | notmuch_search_sanitize >> output +test_expect_equal "$(< output)" "No new mail. +thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Duplicated message (inbox replied)" + +test_begin_subtest "Tag changes modify flags of multiple files" +notmuch tag -replied subject:"Duplicated message" +(cd $MAIL_DIR/cur/; ls duplicated*) > actual +test_expect_equal "$(< actual)" "duplicated-message-another-copy:2,S +duplicated-message-copy:2,S +duplicated-message:2,S" + test_done