Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 16109429E26 for ; Sat, 14 Jan 2012 13:49:57 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t8I1hAW1RHin for ; Sat, 14 Jan 2012 13:49:56 -0800 (PST) Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com [74.125.83.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 4E7F7429E25 for ; Sat, 14 Jan 2012 13:49:56 -0800 (PST) Received: by eekd41 with SMTP id d41so141906eek.26 for ; Sat, 14 Jan 2012 13:49:54 -0800 (PST) Received: by 10.213.32.202 with SMTP id e10mr1834033ebd.98.1326577794792; Sat, 14 Jan 2012 13:49:54 -0800 (PST) Received: from localhost (dsl-hkibrasgw4-fe5cdc00-23.dhcp.inet.fi. [80.220.92.23]) by mx.google.com with ESMTPS id 15sm49331744eeu.1.2012.01.14.13.49.52 (version=SSLv3 cipher=OTHER); Sat, 14 Jan 2012 13:49:53 -0800 (PST) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH 1/2] test: add known broken test for reply from address in named group list Date: Sat, 14 Jan 2012 23:49:49 +0200 Message-Id: <2be56437e2eb77733c27923b6300087ccbffc244.1326577595.git.jani@nikula.org> X-Mailer: git-send-email 1.7.5.4 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jan 2012 21:49:57 -0000 If a message was received to the user's address that was in a named group list, notmuch reply does not use that address for picking the from address. Groups lists are of the form: foo:bar@example.com,baz@example.com; Signed-off-by: Jani Nikula --- test/reply | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/test/reply b/test/reply index c0b8e26..196535a 100755 --- a/test/reply +++ b/test/reply @@ -72,6 +72,25 @@ References: <${gen_msg_id}> On Tue, 05 Jan 2010 15:43:56 -0000, Sender wrote: > reply from alternate address" +test_begin_subtest "Reply from address in named group list" +test_subtest_known_broken +add_message '[from]="Sender "' \ + '[to]=group:test_suite@notmuchmail.org,someone@example.com\;' \ + [cc]=test_suite_other@notmuchmail.org \ + [subject]=notmuch-reply-test \ + '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \ + '[body]="Reply from address in named group list"' + +output=$(notmuch reply id:${gen_msg_id}) +test_expect_equal "$output" "From: Notmuch Test Suite +Subject: Re: notmuch-reply-test +To: Sender , someone@example.com +In-Reply-To: <${gen_msg_id}> +References: <${gen_msg_id}> + +On Tue, 05 Jan 2010 15:43:56 -0000, Sender wrote: +> Reply from address in named group list" + test_begin_subtest "Support for Reply-To" add_message '[from]="Sender "' \ [to]=test_suite@notmuchmail.org \ -- 1.7.5.4