[PATCH 2/2] fix expected test result to include Bcc lines

Dirk Hohndel hohndel at infradead.org
Wed Apr 21 14:55:58 PDT 2010


this test actually tests behavior that I consider as broken.
The Bcc should be to the same address as used in the From line,
otherwise we are creating a potential information leak as email
that is related to one email account (say, work) is copied to
a different account

Signed-off-by: Dirk Hohndel <hohndel at infradead.org>
---
 test/notmuch-test |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/test/notmuch-test b/test/notmuch-test
index 855850c..d939c03 100755
--- a/test/notmuch-test
+++ b/test/notmuch-test
@@ -647,6 +647,7 @@ output=$($NOTMUCH reply id:${gen_msg_id})
 pass_if_equal "$output" "From: Notmuch Test Suite <test_suite at notmuchmail.org>
 Subject: Re: notmuch-reply-test
 To: Sender <sender at example.com>, mailinglist at notmuchmail.org
+Bcc: test_suite at notmuchmail.org
 In-Reply-To: <${gen_msg_id}>
 References: <${gen_msg_id}>
 
@@ -665,6 +666,7 @@ output=$($NOTMUCH reply id:${gen_msg_id})
 pass_if_equal "$output" "From: Notmuch Test Suite <test_suite_other at notmuchmail.org>
 Subject: Re: notmuch-reply-test
 To: Sender <sender at example.com>, mailinglist at notmuchmail.org
+Bcc: test_suite at notmuchmail.org
 In-Reply-To: <${gen_msg_id}>
 References: <${gen_msg_id}>
 
@@ -683,6 +685,7 @@ output=$($NOTMUCH reply id:${gen_msg_id})
 pass_if_equal "$output" "From: Notmuch Test Suite <test_suite_other at notmuchmail.org>
 Subject: Re: notmuch-reply-test
 To: Sender <sender at example.com>, mailinglist at notmuchmail.org
+Bcc: test_suite at notmuchmail.org
 In-Reply-To: <${gen_msg_id}>
 References: <${gen_msg_id}>
 
@@ -703,6 +706,7 @@ output=$($NOTMUCH reply id:${gen_msg_id})
 pass_if_equal "$output" "From: Notmuch Test Suite <test_suite_other at notmuchmail.org>
 Subject: Re: notmuch-reply-test
 To: Sender <sender at example.com>, mailinglist at notmuchmail.org
+Bcc: test_suite at notmuchmail.org
 In-Reply-To: <${gen_msg_id}>
 References: <${gen_msg_id}>
 
@@ -723,6 +727,7 @@ output=$($NOTMUCH reply id:${gen_msg_id})
 pass_if_equal "$output" "From: Notmuch Test Suite <test_suite at otherdomain.org>
 Subject: Re: notmuch-reply-test
 To: Sender <sender at example.com>, mailinglist at notmuchmail.org
+Bcc: test_suite at notmuchmail.org
 In-Reply-To: <${gen_msg_id}>
 References: <${gen_msg_id}>
 
-- 
1.6.6.1



More information about the notmuch mailing list