diff options
author | Austin Clements <amdragon@MIT.EDU> | 2012-03-26 21:37:15 -0400 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-03-30 21:23:43 -0300 |
commit | 5ae960fc192ca1a13469986b567abf98901103de (patch) | |
tree | e104585d46ea678383252227e060863ffb820b7b /test | |
parent | 7400e18fb5f532524146f7083bf964c7e501bdc8 (diff) |
test: Add Emacs test for messages with quotes in their message ID
Currently this is broken because Emacs doesn't properly escape double
quotes in message IDs.
Diffstat (limited to 'test')
-rwxr-xr-x | test/emacs | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -139,6 +139,18 @@ test_emacs '(notmuch-search "id:\"123..456@example\"") output=$(notmuch search 'id:"123..456@example"' | notmuch_search_sanitize) test_expect_equal "$output" "thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Message with .. in Message-Id (inbox search-add show-add)" +test_begin_subtest "Message with quote in Message-Id:" +test_subtest_known_broken +add_message '[id]="\"quote\"@example"' '[subject]="Message with quote in Message-Id"' +test_emacs '(notmuch-search "subject:\"Message with quote\"") + (notmuch-test-wait) + (execute-kbd-macro "+search-add") + (notmuch-search-show-thread) + (notmuch-test-wait) + (execute-kbd-macro "+show-add")' +output=$(notmuch search 'id:"""quote""@example"' | notmuch_search_sanitize) +test_expect_equal "$output" "thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Message with quote in Message-Id (inbox search-add show-add)" + test_begin_subtest "Sending a message via (fake) SMTP" emacs_deliver_message \ 'Testing message sent via SMTP' \ |