From: camalot Date: Fri, 27 Nov 2009 13:30:11 +0000 (+1600) Subject: [notmuch] [PATCH 5/9] Forward individual messages using message-forward X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2a50b5c8bd14bcc21ee806f45ddcd44abf9554bd;p=notmuch-archives.git [notmuch] [PATCH 5/9] Forward individual messages using message-forward --- diff --git a/ce/67021a2f25fa293857d0b201159577b87f4637 b/ce/67021a2f25fa293857d0b201159577b87f4637 new file mode 100644 index 000000000..f49a8f547 --- /dev/null +++ b/ce/67021a2f25fa293857d0b201159577b87f4637 @@ -0,0 +1,98 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id C6A23431FDE + for ; Fri, 27 Nov 2009 05:30:43 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id kwAe2tdKr3LY for ; + Fri, 27 Nov 2009 05:30:43 -0800 (PST) +Received: from mout.perfora.net (mout.perfora.net [74.208.4.194]) + by olra.theworths.org (Postfix) with ESMTP id 015E8431FC9 + for ; Fri, 27 Nov 2009 05:30:43 -0800 (PST) +Received: from vps.nicira.com (66.7.219.28.static.dimenoc.com [66.7.219.28]) + by mx.perfora.net (node=mxus2) with ESMTP (Nemesis) + id 0MQQGS-1Nb5B8185U-00UDWL for notmuch@notmuchmail.org; + Fri, 27 Nov 2009 08:30:42 -0500 +Received: from [76.210.240.177] (port=36297 helo=kea-nicira-lt) + by vps.nicira.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) + (envelope-from ) + id 1NE0uG-0004EM-Id; Fri, 27 Nov 2009 08:30:41 -0500 +Received: by kea-nicira-lt (sSMTP sendmail emulation); + Fri, 27 Nov 2009 05:30:39 -0800 +From: camalot@picnicpark.org +To: notmuch@notmuchmail.org +Date: Fri, 27 Nov 2009 05:30:11 -0800 +Message-Id: <1259328615-1445-6-git-send-email-camalot@picnicpark.org> +X-Mailer: git-send-email 1.6.5.3 +In-Reply-To: <1259328615-1445-5-git-send-email-camalot@picnicpark.org> +References: <1259328615-1445-1-git-send-email-camalot@picnicpark.org> + <1259328615-1445-2-git-send-email-camalot@picnicpark.org> + <1259328615-1445-3-git-send-email-camalot@picnicpark.org> + <1259328615-1445-4-git-send-email-camalot@picnicpark.org> + <1259328615-1445-5-git-send-email-camalot@picnicpark.org> +X-AntiAbuse: This header was added to track abuse, + please include it with any abuse report +X-AntiAbuse: Primary Hostname - vps.nicira.com +X-AntiAbuse: Original Domain - notmuchmail.org +X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] +X-AntiAbuse: Sender Address Domain - picnicpark.org +X-Source: +X-Source-Args: +X-Source-Dir: +Cc: Keith Amidon +Subject: [notmuch] [PATCH 5/9] Forward individual messages using + message-forward +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.12 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Fri, 27 Nov 2009 13:30:44 -0000 + +From: Keith Amidon + +Sometimes forwarding a message is preferable to replying and modifying +the set of recipients. This commit provides that ability using the +message-forward function. +--- + notmuch.el | 7 +++++++ + 1 files changed, 7 insertions(+), 0 deletions(-) + +diff --git a/notmuch.el b/notmuch.el +index a71a9f7..d3d75f9 100644 +--- a/notmuch.el ++++ b/notmuch.el +@@ -62,6 +62,7 @@ + ; overlays-at to query and manipulate the current overlay. + (define-key map "a" 'notmuch-show-archive-thread) + (define-key map "A" 'notmuch-show-mark-read-then-archive-thread) ++ (define-key map "f" 'notmuch-show-forward-current) + (define-key map "m" 'message-mail) + (define-key map "n" 'notmuch-show-next-message) + (define-key map "N" 'notmuch-show-mark-read-then-next-open-message) +@@ -316,6 +317,12 @@ buffer." + (let ((message-id (notmuch-show-get-message-id))) + (notmuch-reply message-id))) + ++(defun notmuch-show-forward-current () ++ "Forward a the current message." ++ (interactive) ++ (with-current-notmuch-show-message ++ (message-forward))) ++ + (defun notmuch-show-pipe-message (command) + "Pipe the contents of the current message to the given command. + +-- +1.6.5.3 +