[PATCH v2 3/4] test: emacs: new test "notmuch-search: when reply is sent, parent message should be tagged 'replied'"

Pieter Praet pieter at praet.org
Sun Feb 19 12:38:27 PST 2012


When a message is replied to, it should be tagged `replied'.
---
 test/emacs |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/test/emacs b/test/emacs
index 0f4f42b..b0fb760 100755
--- a/test/emacs
+++ b/test/emacs
@@ -314,6 +314,11 @@ Reply to a message via Emacs with fake SMTP
 EOF
 test_expect_equal_file OUTPUT EXPECTED
 
+test_begin_subtest "notmuch-search: when reply is sent, the parent message should be tagged 'replied'"
+# depends on subtest "notmuch-search: replying to a thread (sending)"
+output=$(notmuch search 'tag:replied' | notmuch_search_sanitize)
+test_expect_equal "$output" "thread:XXX   2000-01-01 [1/2] Notmuch Test Suite; Testing message sent via SMTP (inbox replied)"
+
 test_begin_subtest "Quote MML tags in reply"
 message_id='test-emacs-mml-quoting at message.id'
 add_message [id]="$message_id" \
-- 
1.7.8.1



More information about the notmuch mailing list