1 Return-Path: <jani@nikula.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id D5DF6429E32
\r
6 for <notmuch@notmuchmail.org>; Sat, 14 Jan 2012 13:50:02 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"
\r
12 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
13 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id z1tLARSrFcVt for <notmuch@notmuchmail.org>;
\r
17 Sat, 14 Jan 2012 13:50:02 -0800 (PST)
\r
18 Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com
\r
19 [74.125.83.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client
\r
20 certificate requested) by olra.theworths.org (Postfix) with ESMTPS id
\r
21 BE904429E33 for <notmuch@notmuchmail.org>; Sat, 14 Jan 2012 13:49:58 -0800
\r
23 Received: by mail-ee0-f53.google.com with SMTP id d41so141906eek.26
\r
24 for <notmuch@notmuchmail.org>; Sat, 14 Jan 2012 13:49:58 -0800 (PST)
\r
25 Received: by 10.213.9.134 with SMTP id l6mr1796372ebl.52.1326577798287;
\r
26 Sat, 14 Jan 2012 13:49:58 -0800 (PST)
\r
27 Received: from localhost (dsl-hkibrasgw4-fe5cdc00-23.dhcp.inet.fi.
\r
29 by mx.google.com with ESMTPS id 15sm49332525eeu.1.2012.01.14.13.49.56
\r
30 (version=SSLv3 cipher=OTHER); Sat, 14 Jan 2012 13:49:57 -0800 (PST)
\r
31 From: Jani Nikula <jani@nikula.org>
\r
32 To: notmuch@notmuchmail.org
\r
33 Subject: [PATCH 2/2] cli: pick the user's address in a group list as from
\r
35 Date: Sat, 14 Jan 2012 23:49:50 +0200
\r
37 <20fe025053af6418ba38a6bd11a9262437e0820e.1326577595.git.jani@nikula.org>
\r
38 X-Mailer: git-send-email 1.7.5.4
\r
40 <2be56437e2eb77733c27923b6300087ccbffc244.1326577595.git.jani@nikula.org>
\r
42 <2be56437e2eb77733c27923b6300087ccbffc244.1326577595.git.jani@nikula.org>
\r
44 <2be56437e2eb77733c27923b6300087ccbffc244.1326577595.git.jani@nikula.org>
\r
46 <2be56437e2eb77733c27923b6300087ccbffc244.1326577595.git.jani@nikula.org>
\r
47 X-BeenThere: notmuch@notmuchmail.org
\r
48 X-Mailman-Version: 2.1.13
\r
50 List-Id: "Use and development of the notmuch mail system."
\r
51 <notmuch.notmuchmail.org>
\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
53 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
55 List-Post: <mailto:notmuch@notmuchmail.org>
\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
58 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
59 X-List-Received-Date: Sat, 14 Jan 2012 21:50:03 -0000
\r
61 Messages received to a group list were not replied to using the from
\r
62 address in the list. Fix it.
\r
64 Signed-off-by: Jani Nikula <jani@nikula.org>
\r
66 notmuch-reply.c | 2 +-
\r
68 2 files changed, 1 insertions(+), 2 deletions(-)
\r
70 diff --git a/notmuch-reply.c b/notmuch-reply.c
\r
71 index da3acce..0f682db 100644
\r
72 --- a/notmuch-reply.c
\r
73 +++ b/notmuch-reply.c
\r
74 @@ -203,7 +203,7 @@ scan_address_list (InternetAddressList *list,
\r
75 if (group_list == NULL)
\r
78 - n += scan_address_list (group_list, config, message, type, NULL);
\r
79 + n += scan_address_list (group_list, config, message, type, user_from);
\r
81 InternetAddressMailbox *mailbox;
\r
83 diff --git a/test/reply b/test/reply
\r
84 index 196535a..e4e16eb 100755
\r
87 @@ -73,7 +73,6 @@ On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:
\r
88 > reply from alternate address"
\r
90 test_begin_subtest "Reply from address in named group list"
\r
91 -test_subtest_known_broken
\r
92 add_message '[from]="Sender <sender@example.com>"' \
\r
93 '[to]=group:test_suite@notmuchmail.org,someone@example.com\;' \
\r
94 [cc]=test_suite_other@notmuchmail.org \
\r