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 827C5429E21
\r
6 for <notmuch@notmuchmail.org>; Wed, 11 Jan 2012 14:08:47 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id f5Q-k3pgBpxZ for <notmuch@notmuchmail.org>;
\r
16 Wed, 11 Jan 2012 14:08:36 -0800 (PST)
\r
17 Received: from mail-ey0-f181.google.com (mail-ey0-f181.google.com
\r
18 [209.85.215.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 9A6B1431FB6
\r
21 for <notmuch@notmuchmail.org>; Wed, 11 Jan 2012 14:08:36 -0800 (PST)
\r
22 Received: by eaah10 with SMTP id h10so540062eaa.26
\r
23 for <notmuch@notmuchmail.org>; Wed, 11 Jan 2012 14:08:34 -0800 (PST)
\r
24 Received: by 10.213.15.12 with SMTP id i12mr277597eba.107.1326319713765;
\r
25 Wed, 11 Jan 2012 14:08:33 -0800 (PST)
\r
26 Received: from localhost (dsl-hkibrasgw4-fe5cdc00-23.dhcp.inet.fi.
\r
28 by mx.google.com with ESMTPS id u53sm11140517eeu.6.2012.01.11.14.08.30
\r
29 (version=SSLv3 cipher=OTHER); Wed, 11 Jan 2012 14:08:31 -0800 (PST)
\r
30 From: Jani Nikula <jani@nikula.org>
\r
31 To: Aaron Ecay <aaronecay@gmail.com>, David Edmondson <dme@dme.org>,
\r
32 notmuch@notmuchmail.org
\r
33 Subject: Re: [PATCH v3 2/4] emacs: add support for replying just to the sender
\r
34 In-Reply-To: <m2d3aqdjpp.fsf@gmail.com>
\r
35 References: <cover.1326224339.git.jani@nikula.org>
\r
36 <069a0cddd4e848314fb64da861b3bf5b4f053f14.1326224339.git.jani@nikula.org>
\r
37 <cun39bmodjr.fsf@hotblack-desiato.hh.sledj.net>
\r
38 <m2d3aqdjpp.fsf@gmail.com>
\r
39 User-Agent: Notmuch/0.10.2+193~ga73a411 (http://notmuchmail.org) Emacs/23.3.1
\r
41 Date: Thu, 12 Jan 2012 00:08:29 +0200
\r
42 Message-ID: <8762gh3naa.fsf@nikula.org>
\r
44 Content-Type: text/plain; charset=utf-8
\r
45 Content-Transfer-Encoding: quoted-printable
\r
46 X-BeenThere: notmuch@notmuchmail.org
\r
47 X-Mailman-Version: 2.1.13
\r
49 List-Id: "Use and development of the notmuch mail system."
\r
50 <notmuch.notmuchmail.org>
\r
51 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
52 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
53 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
54 List-Post: <mailto:notmuch@notmuchmail.org>
\r
55 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
56 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
57 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
58 X-List-Received-Date: Wed, 11 Jan 2012 22:08:47 -0000
\r
60 On Wed, 11 Jan 2012 16:15:30 -0500, Aaron Ecay <aaronecay@gmail.com> wrote:
\r
61 > On Wed, 11 Jan 2012 08:20:56 +0000, David Edmondson <dme@dme.org> wrote:
\r
62 > > On Tue, 10 Jan 2012 21:54:02 +0200, Jani Nikula <jani@nikula.org> wrote:
\r
63 > > > -(defun notmuch-mua-reply (query-string &optional sender)
\r
64 > > > +(defun notmuch-mua-reply (query-string &optional sender reply-all)
\r
67 > > > (args '("reply")))
\r
68 > > > (if notmuch-show-process-crypto
\r
69 > > > (setq args (append args '("--decrypt"))))
\r
70 > > > + (if reply-all
\r
71 > > > + (setq args (append args '("--reply-to=3Dall")))
\r
72 > > > + (setq args (append args '("--reply-to=3Dsender"))))
\r
73 > > > (setq args (append args (list query-string)))
\r
75 > > I don't like how this ends up. How about something like:
\r
77 > > (defun notmuch-mua-reply (query-string &optional sender)
\r
80 > > (args (nconc (list "reply"
\r
81 > > (concat "--reply-to=3D"
\r
82 > > (if reply-all "all" "sender")))
\r
83 > > (when notmuch-show-process-crypto
\r
84 > > (list "--decrypt"))
\r
85 > > (list query-string))))
\r
87 > What about using =E2=80=98format=E2=80=99:
\r
90 > (args (format "reply --reply-to=3D%s %s %s"
\r
91 > (if reply-all "all" "sender")
\r
92 > (if notmuch-show-process-crypto "--decrypt" "")
\r
96 > It=E2=80=99s still not beautiful, but maybe it is better?
\r
98 I don't think it works. The arguments to call-process need to be a list,
\r