Re: Hi all
[notmuch-archives.git] / 67 / b25560319694960f46ec8b01621a885cdced19
1 Return-Path: <BATV+416fd192af55372394e4+2437+infradead.org+hohndel@bombadil.srs.infradead.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 1753F418C34\r
6         for <notmuch@notmuchmail.org>; Mon, 26 Apr 2010 09:25:47 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -4.2\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5\r
12         tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id 6GWxgESM4N44 for <notmuch@notmuchmail.org>;\r
16         Mon, 26 Apr 2010 09:25:46 -0700 (PDT)\r
17 Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34])\r
18         by olra.theworths.org (Postfix) with ESMTP id 6AABB431FC1\r
19         for <notmuch@notmuchmail.org>; Mon, 26 Apr 2010 09:25:46 -0700 (PDT)\r
20 Received: from localhost ([::1] helo=x200.gr8dns.org)\r
21         by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux))\r
22         id 1O6R7y-0003mU-01; Mon, 26 Apr 2010 16:25:46 +0000\r
23 Received: by x200.gr8dns.org (Postfix, from userid 500)\r
24         id F0458CC839; Mon, 26 Apr 2010 09:25:45 -0700 (PDT)\r
25 From: Dirk Hohndel <hohndel@infradead.org>\r
26 To: David Edmondson <dme@dme.org>, notmuch <notmuch@notmuchmail.org>\r
27 Subject: Re: [PATCH] RFC: Add From guessing when forwarding email\r
28 In-Reply-To: <87och65w9q.fsf@ut.hh.sledj.net>\r
29 References: <m3eii5lr34.fsf@x200.gr8dns.org> <87och65w9q.fsf@ut.hh.sledj.net>\r
30 User-Agent: Notmuch/0.2-215-g399f248 (http://notmuchmail.org) Emacs/23.1.1\r
31         (i386-redhat-linux-gnu)\r
32 Date: Mon, 26 Apr 2010 09:25:45 -0700\r
33 Message-ID: <m31ve2kwom.fsf@x200.gr8dns.org>\r
34 MIME-Version: 1.0\r
35 Content-Type: text/plain; charset=us-ascii\r
36 X-SRS-Rewrite: SMTP reverse-path rewritten from <hohndel@infradead.org> by\r
37         bombadil.infradead.org See http://www.infradead.org/rpr.html\r
38 X-BeenThere: notmuch@notmuchmail.org\r
39 X-Mailman-Version: 2.1.13\r
40 Precedence: list\r
41 List-Id: "Use and development of the notmuch mail system."\r
42         <notmuch.notmuchmail.org>\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
46 List-Post: <mailto:notmuch@notmuchmail.org>\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
50 X-List-Received-Date: Mon, 26 Apr 2010 16:25:47 -0000\r
51 \r
52 On Mon, 26 Apr 2010 11:43:45 +0100, David Edmondson <dme@dme.org> wrote:\r
53 > On Fri, 23 Apr 2010 15:52:15 -0700, Dirk Hohndel <hohndel@infradead.org> wrote:\r
54 > > Given how little elisp I know I'm quite interested in feedback\r
55 > > and better implementations\r
56\r
57 > I think that:\r
58\r
59 > (defun notmuch-show-forward-message ()\r
60 >   "Forward the current message."\r
61 >   (interactive)\r
62 >   (let ((user-mail-address\r
63 >        (shell-command-to-string (concat notmuch-command\r
64 >                                         "guess-from"\r
65 >                                         (notmuch-show-get-message-id)))))\r
66 >     (with-current-notmuch-show-message\r
67 >      (notmuch-mua-forward-message))))\r
68\r
69 > is more idiomatic.\r
70 \r
71 Thanks - I was sure that my lack of elisp foo was showing (even though I\r
72 was quite proud that I was able to get it to work at all).\r
73 \r
74 I'll submit an updated patch for the 0.4 merge window.\r
75 \r
76 /D\r
77 \r
78 -- \r
79 Dirk Hohndel\r
80 Intel Open Source Technology Center\r