mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 20:08:10 +01:00
reply: add test for multiple Delivered-To headers
Add a known broken subtest for guessing From: correctly when there are multiple Delivered-To: headers. The address configured as primary_email should get picked.
This commit is contained in:
parent
dd8c167850
commit
8c0bebedc5
1 changed files with 22 additions and 1 deletions
|
@ -245,6 +245,27 @@ On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:
|
||||||
> From guessing
|
> From guessing
|
||||||
OK"
|
OK"
|
||||||
|
|
||||||
|
test_begin_subtest "From guessing: multiple Delivered-To"
|
||||||
|
test_subtest_known_broken
|
||||||
|
add_message '[from]="Sender <sender@example.com>"' \
|
||||||
|
'[to]="Recipient <recipient@example.com>"' \
|
||||||
|
'[subject]="From guessing"' \
|
||||||
|
'[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
|
||||||
|
'[body]="From guessing"' \
|
||||||
|
'[header]="Delivered-To: test_suite_other@notmuchmail.org
|
||||||
|
Delivered-To: test_suite@notmuchmail.org"'
|
||||||
|
|
||||||
|
output=$(notmuch reply id:${gen_msg_id} 2>&1 && echo OK)
|
||||||
|
test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
|
||||||
|
Subject: Re: From guessing
|
||||||
|
To: Sender <sender@example.com>, Recipient <recipient@example.com>
|
||||||
|
In-Reply-To: <${gen_msg_id}>
|
||||||
|
References: <${gen_msg_id}>
|
||||||
|
|
||||||
|
On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:
|
||||||
|
> From guessing
|
||||||
|
OK"
|
||||||
|
|
||||||
test_begin_subtest "Reply with RFC 2047-encoded headers"
|
test_begin_subtest "Reply with RFC 2047-encoded headers"
|
||||||
add_message '[subject]="=?iso-8859-1?q?=e0=df=e7?="' \
|
add_message '[subject]="=?iso-8859-1?q?=e0=df=e7?="' \
|
||||||
'[from]="=?utf-8?q?=e2=98=83?= <snowman@example.com>"' \
|
'[from]="=?utf-8?q?=e2=98=83?= <snowman@example.com>"' \
|
||||||
|
@ -281,7 +302,7 @@ test_expect_equal_json "$output" '
|
||||||
"crypto": {},
|
"crypto": {},
|
||||||
"date_relative": "2010-01-05",
|
"date_relative": "2010-01-05",
|
||||||
"excluded": false,
|
"excluded": false,
|
||||||
"filename": ["'${MAIL_DIR}'/msg-014"],
|
"filename": ["'${MAIL_DIR}'/msg-015"],
|
||||||
"headers": {
|
"headers": {
|
||||||
"Date": "Tue, 05 Jan 2010 15:43:56 +0000",
|
"Date": "Tue, 05 Jan 2010 15:43:56 +0000",
|
||||||
"From": "\u2603 <snowman@example.com>",
|
"From": "\u2603 <snowman@example.com>",
|
||||||
|
|
Loading…
Reference in a new issue