1 Return-Path: <schnouki@schnouki.net>
\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 85E84429E35
\r
6 for <notmuch@notmuchmail.org>; Fri, 27 May 2011 02:15:24 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1]
\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 vxPSY+gtmdvA for <notmuch@notmuchmail.org>;
\r
17 Fri, 27 May 2011 02:15:23 -0700 (PDT)
\r
18 Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222])
\r
19 by olra.theworths.org (Postfix) with ESMTP id D15BF429E28
\r
20 for <notmuch@notmuchmail.org>; Fri, 27 May 2011 02:15:23 -0700 (PDT)
\r
21 Received: from localhost.localdomain (thor.loria.fr [152.81.12.250])
\r
22 by ks3536.kimsufi.com (Postfix) with ESMTPSA id 99B6C6A06A9;
\r
23 Fri, 27 May 2011 11:15:22 +0200 (CEST)
\r
24 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net;
\r
25 s=key-schnouki; t=1306487722;
\r
26 bh=EgcPKdIP54tDvt3ZSy07FKZh01oVdF5n075k+q7PcyQ=;
\r
27 h=From:To:Subject:Date:Message-Id:In-Reply-To:References;
\r
28 b=Aiw0EO60utEgV9vLcU8F5qJ8WYflnTuIxQfGYCdE58vEH59QoQyjFinstiK84ebQC
\r
29 DMU8P2Svr0SS0jagzTcPRZ2/hHinJyx5yBvClR8bTmePsQuyX7nvjqgUBcG9tbhprQ
\r
30 wb70RU5uF1i3BJuIYJZb78wLAKW8ywZEQZH5QrYk=
\r
31 From: Thomas Jost <schnouki@schnouki.net>
\r
32 To: Jameson Graef Rollins <jrollins@finestructure.net>,
\r
33 Carl Worth <cworth@cworth.org>, Stewart Smith <stewart@flamingspork.com>,
\r
34 notmuch <notmuch@notmuchmail.org>
\r
35 Subject: [PATCH 1/2] emacs: Don't always prompt for the "From" address when
\r
37 Date: Fri, 27 May 2011 11:14:59 +0200
\r
38 Message-Id: <1306487700-21358-1-git-send-email-schnouki@schnouki.net>
\r
39 X-Mailer: git-send-email 1.7.5.2
\r
40 In-Reply-To: <87mxi9ytvt.fsf@servo.factory.finestructure.net>
\r
41 References: <87mxi9ytvt.fsf@servo.factory.finestructure.net>
\r
42 X-BeenThere: notmuch@notmuchmail.org
\r
43 X-Mailman-Version: 2.1.13
\r
45 List-Id: "Use and development of the notmuch mail system."
\r
46 <notmuch.notmuchmail.org>
\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
48 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
50 List-Post: <mailto:notmuch@notmuchmail.org>
\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
53 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
54 X-List-Received-Date: Fri, 27 May 2011 09:15:24 -0000
\r
56 When replying, the From: address is already filled in by notmuch reply, so most
\r
57 of the time there is no need to prompt the user for it.
\r
61 You're right, this is mostly annoying when replying to messages. Here's a fix.
\r
66 emacs/notmuch-mua.el | 7 +++++--
\r
67 1 files changed, 5 insertions(+), 2 deletions(-)
\r
69 diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
\r
70 index 7c05a81..556d2bf 100644
\r
71 --- a/emacs/notmuch-mua.el
\r
72 +++ b/emacs/notmuch-mua.el
\r
73 @@ -155,7 +155,10 @@ name and addresses configured in the notmuch configuration file."
\r
74 :type '(repeat string))
\r
76 (defcustom notmuch-always-prompt-for-sender nil
\r
77 - "Always prompt for the From: address when composing a new message."
\r
78 + "Always prompt for the From: address when composing or forwarding a message.
\r
80 +This is not taken into account when replying to a message, because in that case
\r
81 +the From: header is already filled in by notmuch."
\r
85 @@ -203,7 +206,7 @@ the From: address first."
\r
86 "Invoke the notmuch reply window."
\r
89 - (when (or prompt-for-sender notmuch-always-prompt-for-sender)
\r
90 + (when prompt-for-sender
\r
91 (notmuch-mua-prompt-for-sender))))
\r
92 (notmuch-mua-reply query-string sender)))
\r