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 A764F431FAE
\r
6 for <notmuch@notmuchmail.org>; Thu, 3 Dec 2009 00:47:15 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
8 Received: from olra.theworths.org ([127.0.0.1])
\r
9 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
10 with ESMTP id vpMB-IJzXCpE for <notmuch@notmuchmail.org>;
\r
11 Thu, 3 Dec 2009 00:47:15 -0800 (PST)
\r
12 Received: from e28smtp06.in.ibm.com (e28smtp06.in.ibm.com [122.248.162.6])
\r
13 by olra.theworths.org (Postfix) with ESMTP id F03D3431FBF
\r
14 for <notmuch@notmuchmail.org>; Thu, 3 Dec 2009 00:47:14 -0800 (PST)
\r
15 Received: from d28relay01.in.ibm.com (d28relay01.in.ibm.com [9.184.220.58])
\r
16 by e28smtp06.in.ibm.com (8.14.3/8.13.1) with ESMTP id nB38lDLP032182
\r
17 for <notmuch@notmuchmail.org>; Thu, 3 Dec 2009 14:17:13 +0530
\r
18 Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63])
\r
19 by d28relay01.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id
\r
21 for <notmuch@notmuchmail.org>; Thu, 3 Dec 2009 14:17:13 +0530
\r
22 Received: from d28av01.in.ibm.com (loopback [127.0.0.1])
\r
23 by d28av01.in.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id
\r
25 for <notmuch@notmuchmail.org>; Thu, 3 Dec 2009 14:17:12 +0530
\r
26 Received: from localhost.localdomain ([9.77.193.32])
\r
27 by d28av01.in.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id
\r
28 nB38kmwB021218; Thu, 3 Dec 2009 14:17:03 +0530
\r
29 From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
\r
30 To: cworth@cworth.org, aneesh.kumar@linux.vnet.ibm.com
\r
31 Date: Thu, 3 Dec 2009 14:16:45 +0530
\r
32 Message-Id: <1259830005-3439-2-git-send-email-aneesh.kumar@linux.vnet.ibm.com>
\r
33 X-Mailer: git-send-email 1.6.5.2.74.g610f9
\r
35 <1259830005-3439-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com>
\r
36 References: <1259830005-3439-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com>
\r
37 Cc: "Aneesh Kumar K.V" <aneesh.kumar@gmail.com>, notmuch@notmuchmail.org
\r
38 Subject: [notmuch] [PATCH 2/2] notmuch.el: Add support for reply-to sender
\r
39 X-BeenThere: notmuch@notmuchmail.org
\r
40 X-Mailman-Version: 2.1.12
\r
42 List-Id: "Use and development of the notmuch mail system."
\r
43 <notmuch.notmuchmail.org>
\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
45 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
47 List-Post: <mailto:notmuch@notmuchmail.org>
\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
50 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
51 X-List-Received-Date: Thu, 03 Dec 2009 08:47:15 -0000
\r
53 From: Aneesh Kumar K.V <aneesh.kumar@gmail.com>
\r
55 Add key binding to do a reply-to sender. This
\r
58 Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@gmail.com>
\r
60 notmuch.el | 24 ++++++++++++++++++++++--
\r
61 1 files changed, 22 insertions(+), 2 deletions(-)
\r
63 diff --git a/notmuch.el b/notmuch.el
\r
64 index bd8a6ce..c067e63 100644
\r
68 (define-key map "s" 'notmuch-search)
\r
69 (define-key map "m" 'message-mail)
\r
70 (define-key map "f" 'notmuch-show-forward-current)
\r
71 - (define-key map "r" 'notmuch-show-reply)
\r
72 + (define-key map "r" 'notmuch-show-reply-all)
\r
73 + (define-key map "R" 'notmuch-show-reply)
\r
74 (define-key map "|" 'notmuch-show-pipe-message)
\r
75 (define-key map "w" 'notmuch-show-save-attachments)
\r
76 (define-key map "V" 'notmuch-show-view-raw-message)
\r
77 @@ -367,12 +368,31 @@ buffer."
\r
81 -(defun notmuch-show-reply ()
\r
82 +(defun notmuch-show-reply-all ()
\r
83 "Begin composing a reply to the current message in a new buffer."
\r
85 (let ((message-id (notmuch-show-get-message-id)))
\r
86 (notmuch-reply message-id)))
\r
89 +(defun notmuch-format-reply (format-string query-string)
\r
90 + (switch-to-buffer (generate-new-buffer "notmuch-draft"))
\r
91 + (call-process notmuch-command nil t nil "reply"
\r
92 + (concat "--format=" format-string) query-string)
\r
93 + (message-insert-signature)
\r
94 + (goto-char (point-min))
\r
95 + (if (re-search-forward "^$" nil t)
\r
97 + (insert "--text follows this line--")
\r
101 +(defun notmuch-show-reply ()
\r
102 + "Begin composing a reply to the current message in a new buffer."
\r
104 + (let ((message-id (notmuch-show-get-message-id)))
\r
105 + (notmuch-format-reply "sender-only" message-id)))
\r
107 (defun notmuch-show-forward-current ()
\r
108 "Forward the current message."
\r