mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 20:08:10 +01:00
test/emacs: add broken test for message replying to msg to self
This is a strange corner case where the removing of the user's address from the To: header does the wrong thing. If we think it is worth (eventually) fixing, this test can serve as a reminder.
This commit is contained in:
parent
efc17bb561
commit
5292e9b1ae
1 changed files with 24 additions and 0 deletions
|
@ -521,6 +521,30 @@ Notmuch Test Suite <test_suite@notmuchmail.org> writes:
|
|||
EOF
|
||||
test_expect_equal_file OUTPUT EXPECTED
|
||||
|
||||
test_begin_subtest "Reply within emacs to message from self"
|
||||
test_subtest_known_broken
|
||||
add_message '[from]="test_suite@notmuchmail.org"' \
|
||||
'[to]="test_suite@notmuchmail.org"'
|
||||
test_emacs "(let ((message-hidden-headers '()))
|
||||
(notmuch-show \"id:${gen_msg_id}\")
|
||||
(notmuch-show-reply)
|
||||
(test-output))"
|
||||
sed -i -e 's/^In-Reply-To: <.*>$/In-Reply-To: <XXX>/' OUTPUT
|
||||
sed -i -e 's/^References: <.*>$/References: <XXX>/' OUTPUT
|
||||
cat <<EOF >EXPECTED
|
||||
From: Notmuch Test Suite <test_suite@notmuchmail.org>
|
||||
To: test_suite@notmuchmail.org
|
||||
Subject: Re: Reply within emacs to message from self
|
||||
In-Reply-To: <XXX>
|
||||
Fcc: ${MAIL_DIR}/sent
|
||||
References: <XXX>
|
||||
--text follows this line--
|
||||
test_suite@notmuchmail.org writes:
|
||||
|
||||
> This is just a test message (#7)
|
||||
EOF
|
||||
test_expect_equal_file EXPECTED OUTPUT
|
||||
|
||||
test_begin_subtest "Quote MML tags in reply"
|
||||
message_id='test-emacs-mml-quoting@message.id'
|
||||
add_message [id]="$message_id" \
|
||||
|
|
Loading…
Reference in a new issue