Re: [PATCH] RFC: Add From guessing when forwarding email
authorDirk Hohndel <hohndel@infradead.org>
Mon, 26 Apr 2010 16:25:45 +0000 (09:25 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:55 +0000 (09:36 -0800)
67/b25560319694960f46ec8b01621a885cdced19 [new file with mode: 0644]

diff --git a/67/b25560319694960f46ec8b01621a885cdced19 b/67/b25560319694960f46ec8b01621a885cdced19
new file mode 100644 (file)
index 0000000..66995e1
--- /dev/null
@@ -0,0 +1,80 @@
+Return-Path: <BATV+416fd192af55372394e4+2437+infradead.org+hohndel@bombadil.srs.infradead.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 1753F418C34\r
+       for <notmuch@notmuchmail.org>; Mon, 26 Apr 2010 09:25:47 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -4.2\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5\r
+       tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3] 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 6GWxgESM4N44 for <notmuch@notmuchmail.org>;\r
+       Mon, 26 Apr 2010 09:25:46 -0700 (PDT)\r
+Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34])\r
+       by olra.theworths.org (Postfix) with ESMTP id 6AABB431FC1\r
+       for <notmuch@notmuchmail.org>; Mon, 26 Apr 2010 09:25:46 -0700 (PDT)\r
+Received: from localhost ([::1] helo=x200.gr8dns.org)\r
+       by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux))\r
+       id 1O6R7y-0003mU-01; Mon, 26 Apr 2010 16:25:46 +0000\r
+Received: by x200.gr8dns.org (Postfix, from userid 500)\r
+       id F0458CC839; Mon, 26 Apr 2010 09:25:45 -0700 (PDT)\r
+From: Dirk Hohndel <hohndel@infradead.org>\r
+To: David Edmondson <dme@dme.org>, notmuch <notmuch@notmuchmail.org>\r
+Subject: Re: [PATCH] RFC: Add From guessing when forwarding email\r
+In-Reply-To: <87och65w9q.fsf@ut.hh.sledj.net>\r
+References: <m3eii5lr34.fsf@x200.gr8dns.org> <87och65w9q.fsf@ut.hh.sledj.net>\r
+User-Agent: Notmuch/0.2-215-g399f248 (http://notmuchmail.org) Emacs/23.1.1\r
+       (i386-redhat-linux-gnu)\r
+Date: Mon, 26 Apr 2010 09:25:45 -0700\r
+Message-ID: <m31ve2kwom.fsf@x200.gr8dns.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-SRS-Rewrite: SMTP reverse-path rewritten from <hohndel@infradead.org> by\r
+       bombadil.infradead.org See http://www.infradead.org/rpr.html\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 16:25:47 -0000\r
+\r
+On Mon, 26 Apr 2010 11:43:45 +0100, David Edmondson <dme@dme.org> wrote:\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
+Thanks - I was sure that my lack of elisp foo was showing (even though I\r
+was quite proud that I was able to get it to work at all).\r
+\r
+I'll submit an updated patch for the 0.4 merge window.\r
+\r
+/D\r
+\r
+-- \r
+Dirk Hohndel\r
+Intel Open Source Technology Center\r