1 Return-Path: <aneesh.kumar@linux.vnet.ibm.com>
\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 781144916B3
\r
6 for <notmuch@notmuchmail.org>; Wed, 10 Mar 2010 08:31:53 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-3.97 tagged_above=-999 required=5 tests=[AWL=0.215,
\r
12 BAYES_40=-0.185, RCVD_IN_DNSWL_MED=-4] autolearn=unavailable
\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 DhwyGNbeRZlZ for <notmuch@notmuchmail.org>;
\r
16 Wed, 10 Mar 2010 08:31:53 -0800 (PST)
\r
17 Received: from e23smtp02.au.ibm.com (e23smtp02.au.ibm.com [202.81.31.144])
\r
18 by olra.theworths.org (Postfix) with ESMTP id D8CA549F16E
\r
19 for <notmuch@notmuchmail.org>; Wed, 10 Mar 2010 08:31:50 -0800 (PST)
\r
20 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [202.81.31.247])
\r
21 by e23smtp02.au.ibm.com (8.14.3/8.13.1) with ESMTP id o2AGSILo019857
\r
22 for <notmuch@notmuchmail.org>; Thu, 11 Mar 2010 03:28:18 +1100
\r
23 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139])
\r
24 by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id
\r
26 for <notmuch@notmuchmail.org>; Thu, 11 Mar 2010 03:25:45 +1100
\r
27 Received: from d23av04.au.ibm.com (loopback [127.0.0.1])
\r
28 by d23av04.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id
\r
30 for <notmuch@notmuchmail.org>; Thu, 11 Mar 2010 03:31:31 +1100
\r
31 Received: from localhost.localdomain ([9.124.221.30])
\r
32 by d23av04.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id
\r
33 o2AGVSYf008190; Thu, 11 Mar 2010 03:31:30 +1100
\r
34 From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
\r
35 To: cworth@cworth.org
\r
36 Date: Wed, 10 Mar 2010 22:01:26 +0530
\r
38 <1268238686-13605-2-git-send-email-aneesh.kumar@linux.vnet.ibm.com>
\r
39 X-Mailer: git-send-email 1.7.0.2.157.gb7e7f
\r
40 In-Reply-To: <87zl2hic7d.fsf@yoom.home.cworth.org>
\r
41 References: <87zl2hic7d.fsf@yoom.home.cworth.org>
\r
42 Cc: "Aneesh Kumar K.V" <aneesh.kumar@gmail.com>, notmuch@notmuchmail.org
\r
43 Subject: [notmuch] [PATCH -V3 2/2] notmuch.el: Add support for reply-to
\r
45 X-BeenThere: notmuch@notmuchmail.org
\r
46 X-Mailman-Version: 2.1.13
\r
48 List-Id: "Use and development of the notmuch mail system."
\r
49 <notmuch.notmuchmail.org>
\r
50 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
51 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
52 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
53 List-Post: <mailto:notmuch@notmuchmail.org>
\r
54 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
55 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
56 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
57 X-List-Received-Date: Wed, 10 Mar 2010 16:31:53 -0000
\r
59 From: Aneesh Kumar K.V <aneesh.kumar@gmail.com>
\r
61 Add key binding to do a reply-to sender. This is mapped to 'R'
\r
63 Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@gmail.com>
\r
65 emacs/notmuch.el | 24 ++++++++++++++++++++++--
\r
66 1 files changed, 22 insertions(+), 2 deletions(-)
\r
68 diff --git a/emacs/notmuch.el b/emacs/notmuch.el
\r
69 index 5b553bb..9ba1ec1 100644
\r
70 --- a/emacs/notmuch.el
\r
71 +++ b/emacs/notmuch.el
\r
73 (define-key map "s" 'notmuch-search)
\r
74 (define-key map "m" 'message-mail)
\r
75 (define-key map "f" 'notmuch-show-forward-current)
\r
76 - (define-key map "r" 'notmuch-show-reply)
\r
77 + (define-key map "r" 'notmuch-show-reply-all)
\r
78 + (define-key map "R" 'notmuch-show-reply)
\r
79 (define-key map "|" 'notmuch-show-pipe-message)
\r
80 (define-key map "w" 'notmuch-show-save-attachments)
\r
81 (define-key map "V" 'notmuch-show-view-raw-message)
\r
82 @@ -446,12 +447,31 @@ buffer."
\r
86 -(defun notmuch-show-reply ()
\r
87 +(defun notmuch-show-reply-all ()
\r
88 "Begin composing a reply to the current message in a new buffer."
\r
90 (let ((message-id (notmuch-show-get-message-id)))
\r
91 (notmuch-reply message-id)))
\r
94 +(defun notmuch-recipient-reply (recipient query-string)
\r
95 + (switch-to-buffer (generate-new-buffer "notmuch-draft"))
\r
96 + (call-process notmuch-command nil t nil "reply"
\r
97 + (concat "--recipient=" recipient) query-string)
\r
98 + (message-insert-signature)
\r
99 + (goto-char (point-min))
\r
100 + (if (re-search-forward "^$" nil t)
\r
102 + (insert "--text follows this line--")
\r
106 +(defun notmuch-show-reply ()
\r
107 + "Begin composing a reply to the current message in a new buffer."
\r
109 + (let ((message-id (notmuch-show-get-message-id)))
\r
110 + (notmuch-recipient-reply "sender" message-id)))
\r
112 (defun notmuch-show-forward-current ()
\r
113 "Forward the current message."
\r