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 D5DF6429E32 for ; Sat, 14 Jan 2012 13:50:02 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" 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 z1tLARSrFcVt for ; Sat, 14 Jan 2012 13:50:02 -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 BE904429E33 for ; Sat, 14 Jan 2012 13:49:58 -0800 (PST) Received: by mail-ee0-f53.google.com with SMTP id d41so141906eek.26 for ; Sat, 14 Jan 2012 13:49:58 -0800 (PST) Received: by 10.213.9.134 with SMTP id l6mr1796372ebl.52.1326577798287; Sat, 14 Jan 2012 13:49:58 -0800 (PST) Received: from localhost (dsl-hkibrasgw4-fe5cdc00-23.dhcp.inet.fi. [80.220.92.23]) by mx.google.com with ESMTPS id 15sm49332525eeu.1.2012.01.14.13.49.56 (version=SSLv3 cipher=OTHER); Sat, 14 Jan 2012 13:49:57 -0800 (PST) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH 2/2] cli: pick the user's address in a group list as from address Date: Sat, 14 Jan 2012 23:49:50 +0200 Message-Id: <20fe025053af6418ba38a6bd11a9262437e0820e.1326577595.git.jani@nikula.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <2be56437e2eb77733c27923b6300087ccbffc244.1326577595.git.jani@nikula.org> References: <2be56437e2eb77733c27923b6300087ccbffc244.1326577595.git.jani@nikula.org> In-Reply-To: <2be56437e2eb77733c27923b6300087ccbffc244.1326577595.git.jani@nikula.org> References: <2be56437e2eb77733c27923b6300087ccbffc244.1326577595.git.jani@nikula.org> 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:50:03 -0000 Messages received to a group list were not replied to using the from address in the list. Fix it. Signed-off-by: Jani Nikula --- notmuch-reply.c | 2 +- test/reply | 1 - 2 files changed, 1 insertions(+), 2 deletions(-) diff --git a/notmuch-reply.c b/notmuch-reply.c index da3acce..0f682db 100644 --- a/notmuch-reply.c +++ b/notmuch-reply.c @@ -203,7 +203,7 @@ scan_address_list (InternetAddressList *list, if (group_list == NULL) continue; - n += scan_address_list (group_list, config, message, type, NULL); + n += scan_address_list (group_list, config, message, type, user_from); } else { InternetAddressMailbox *mailbox; const char *name; diff --git a/test/reply b/test/reply index 196535a..e4e16eb 100755 --- a/test/reply +++ b/test/reply @@ -73,7 +73,6 @@ 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 \ -- 1.7.5.4