aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHannu Hartikainen <hannu@hrtk.in>2021-07-02 12:13:09 +0300
committerDavid Bremner <david@tethera.net>2021-08-29 18:10:08 -0700
commit717e3dcdc3e55d72c8e4a1948708c34170dbf926 (patch)
tree201a67a609ac6e83ff71206e31f50ada26623824 /test
parent8c0bebedc5edbff5ddc46b66da1177ec18f48c69 (diff)
lib: consider all instances of Delivered-To header
When using notmuch-reply and guessing the From: address from Delivered-To headers, I had the wrong address chosen today. This was because the messages from the notmuch list contain these headers in this order: Delivered-To: hannu.hartikainen@gmail.com ... Delivered-To: hannu@hrtk.in In my .notmuch-config I have the following configuration: primary_email=hannu@hrtk.in other_email=hannu.hartikainen@gmail.com;... Before this change, notmuch-reply would guess From: @gmail.com because that is the first Delivered-To header present. After the change, the primary address is chosen as I would expect.
Diffstat (limited to 'test')
-rwxr-xr-xtest/T220-reply.sh1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/T220-reply.sh b/test/T220-reply.sh
index 9f711a04..2db36fef 100755
--- a/test/T220-reply.sh
+++ b/test/T220-reply.sh
@@ -246,7 +246,6 @@ On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:
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"' \