[notmuch] [PATCH -v2] notmuch.el: Support for customizing search result display
[notmuch-archives.git] / ce / 67021a2f25fa293857d0b201159577b87f4637
1 Return-Path: <camalot@picnicpark.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 C6A23431FDE\r
6         for <notmuch@notmuchmail.org>; Fri, 27 Nov 2009 05:30:43 -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 kwAe2tdKr3LY for <notmuch@notmuchmail.org>;\r
11         Fri, 27 Nov 2009 05:30:43 -0800 (PST)\r
12 Received: from mout.perfora.net (mout.perfora.net [74.208.4.194])\r
13         by olra.theworths.org (Postfix) with ESMTP id 015E8431FC9\r
14         for <notmuch@notmuchmail.org>; Fri, 27 Nov 2009 05:30:43 -0800 (PST)\r
15 Received: from vps.nicira.com (66.7.219.28.static.dimenoc.com [66.7.219.28])\r
16         by mx.perfora.net (node=mxus2) with ESMTP (Nemesis)\r
17         id 0MQQGS-1Nb5B8185U-00UDWL for notmuch@notmuchmail.org;\r
18         Fri, 27 Nov 2009 08:30:42 -0500\r
19 Received: from [76.210.240.177] (port=36297 helo=kea-nicira-lt)\r
20         by vps.nicira.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69)\r
21         (envelope-from <camalot@picnicpark.org>)\r
22         id 1NE0uG-0004EM-Id; Fri, 27 Nov 2009 08:30:41 -0500\r
23 Received: by kea-nicira-lt (sSMTP sendmail emulation);\r
24         Fri, 27 Nov 2009 05:30:39 -0800\r
25 From: camalot@picnicpark.org\r
26 To: notmuch@notmuchmail.org\r
27 Date: Fri, 27 Nov 2009 05:30:11 -0800\r
28 Message-Id: <1259328615-1445-6-git-send-email-camalot@picnicpark.org>\r
29 X-Mailer: git-send-email 1.6.5.3\r
30 In-Reply-To: <1259328615-1445-5-git-send-email-camalot@picnicpark.org>\r
31 References: <1259328615-1445-1-git-send-email-camalot@picnicpark.org>\r
32         <1259328615-1445-2-git-send-email-camalot@picnicpark.org>\r
33         <1259328615-1445-3-git-send-email-camalot@picnicpark.org>\r
34         <1259328615-1445-4-git-send-email-camalot@picnicpark.org>\r
35         <1259328615-1445-5-git-send-email-camalot@picnicpark.org>\r
36 X-AntiAbuse: This header was added to track abuse,\r
37         please include it with any abuse report\r
38 X-AntiAbuse: Primary Hostname - vps.nicira.com\r
39 X-AntiAbuse: Original Domain - notmuchmail.org\r
40 X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]\r
41 X-AntiAbuse: Sender Address Domain - picnicpark.org\r
42 X-Source: \r
43 X-Source-Args: \r
44 X-Source-Dir: \r
45 Cc: Keith Amidon <keith@nicira.com>\r
46 Subject: [notmuch] [PATCH 5/9] Forward individual messages using\r
47         message-forward\r
48 X-BeenThere: notmuch@notmuchmail.org\r
49 X-Mailman-Version: 2.1.12\r
50 Precedence: list\r
51 List-Id: "Use and development of the notmuch mail system."\r
52         <notmuch.notmuchmail.org>\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
54         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
56 List-Post: <mailto:notmuch@notmuchmail.org>\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
59         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
60 X-List-Received-Date: Fri, 27 Nov 2009 13:30:44 -0000\r
61 \r
62 From: Keith Amidon <keith@nicira.com>\r
63 \r
64 Sometimes forwarding a message is preferable to replying and modifying\r
65 the set of recipients.  This commit provides that ability using the\r
66 message-forward function.\r
67 ---\r
68  notmuch.el |    7 +++++++\r
69  1 files changed, 7 insertions(+), 0 deletions(-)\r
70 \r
71 diff --git a/notmuch.el b/notmuch.el\r
72 index a71a9f7..d3d75f9 100644\r
73 --- a/notmuch.el\r
74 +++ b/notmuch.el\r
75 @@ -62,6 +62,7 @@\r
76      ; overlays-at to query and manipulate the current overlay.\r
77      (define-key map "a" 'notmuch-show-archive-thread)\r
78      (define-key map "A" 'notmuch-show-mark-read-then-archive-thread)\r
79 +    (define-key map "f" 'notmuch-show-forward-current)\r
80      (define-key map "m" 'message-mail)\r
81      (define-key map "n" 'notmuch-show-next-message)\r
82      (define-key map "N" 'notmuch-show-mark-read-then-next-open-message)\r
83 @@ -316,6 +317,12 @@ buffer."\r
84    (let ((message-id (notmuch-show-get-message-id)))\r
85      (notmuch-reply message-id)))\r
86  \r
87 +(defun notmuch-show-forward-current ()\r
88 +  "Forward a the current message."\r
89 +  (interactive)\r
90 +  (with-current-notmuch-show-message\r
91 +   (message-forward)))\r
92 +\r
93  (defun notmuch-show-pipe-message (command)\r
94    "Pipe the contents of the current message to the given command.\r
95  \r
96 -- \r
97 1.6.5.3\r
98 \r