Re: [PATCH] RFC: Add From guessing when forwarding email
authorDavid Edmondson <dme@dme.org>
Mon, 26 Apr 2010 10:43:45 +0000 (11:43 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:54 +0000 (09:36 -0800)
1c/64cca3d7bc8460ba2031c2fdfae957d1e10e2e [new file with mode: 0644]

diff --git a/1c/64cca3d7bc8460ba2031c2fdfae957d1e10e2e b/1c/64cca3d7bc8460ba2031c2fdfae957d1e10e2e
new file mode 100644 (file)
index 0000000..3b81328
--- /dev/null
@@ -0,0 +1,77 @@
+Return-Path: <dme@dme.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id C1DE54196F0\r
+       for <notmuch@notmuchmail.org>; Mon, 26 Apr 2010 03:43:38 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -1.9\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5\r
+       tests=[BAYES_00=-1.9] autolearn=ham\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id m6ihIijY11li for <notmuch@notmuchmail.org>;\r
+       Mon, 26 Apr 2010 03:43:37 -0700 (PDT)\r
+Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com\r
+       [74.125.82.181])\r
+       by olra.theworths.org (Postfix) with ESMTP id A6066431FC1\r
+       for <notmuch@notmuchmail.org>; Mon, 26 Apr 2010 03:43:37 -0700 (PDT)\r
+Received: by wyj26 with SMTP id 26so596410wyj.26\r
+       for <notmuch@notmuchmail.org>; Mon, 26 Apr 2010 03:43:36 -0700 (PDT)\r
+Received: by 10.216.86.209 with SMTP id w59mr4943934wee.186.1272278616790;\r
+       Mon, 26 Apr 2010 03:43:36 -0700 (PDT)\r
+Received: from ut.hh.sledj.net (host83-217-165-81.dsl.vispa.com\r
+       [83.217.165.81])\r
+       by mx.google.com with ESMTPS id t70sm887736weq.2.2010.04.26.03.43.34\r
+       (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
+       Mon, 26 Apr 2010 03:43:35 -0700 (PDT)\r
+Received: by ut.hh.sledj.net (Postfix, from userid 1000)\r
+       id B2B32594135; Mon, 26 Apr 2010 11:43:45 +0100 (BST)\r
+To: Dirk Hohndel <hohndel@infradead.org>, notmuch <notmuch@notmuchmail.org>\r
+Subject: Re: [PATCH] RFC: Add From guessing when forwarding email\r
+In-Reply-To: <m3eii5lr34.fsf@x200.gr8dns.org>\r
+References: <m3eii5lr34.fsf@x200.gr8dns.org>\r
+User-Agent: Notmuch/0.2-191-g4256215 (http://notmuchmail.org) Emacs/23.1.1\r
+       (x86_64-pc-linux-gnu)\r
+From: David Edmondson <dme@dme.org>\r
+Date: Mon, 26 Apr 2010 11:43:45 +0100\r
+Message-ID: <87och65w9q.fsf@ut.hh.sledj.net>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 26 Apr 2010 10:43:38 -0000\r
+\r
+On Fri, 23 Apr 2010 15:52:15 -0700, Dirk Hohndel <hohndel@infradead.org> wrote:\r
+> Given how little elisp I know I'm quite interested in feedback\r
+> and better implementations\r
+\r
+I think that:\r
+\r
+(defun notmuch-show-forward-message ()\r
+  "Forward the current message."\r
+  (interactive)\r
+  (let ((user-mail-address\r
+        (shell-command-to-string (concat notmuch-command\r
+                                         "guess-from"\r
+                                         (notmuch-show-get-message-id)))))\r
+    (with-current-notmuch-show-message\r
+     (notmuch-mua-forward-message))))\r
+\r
+is more idiomatic.\r
+\r
+dme.\r
+-- \r
+David Edmondson, http://dme.org\r