1 Return-Path: <dkg@fifthhorseman.net>
\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 arlo.cworth.org (Postfix) with ESMTP id 315B56DE02A7
\r
6 for <notmuch@notmuchmail.org>; Sun, 24 Jul 2016 05:57:55 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org
\r
11 X-Spam-Status: No, score=0.363 tagged_above=-999 required=5 tests=[AWL=-0.441,
\r
12 DATE_IN_PAST_12_24=0.804] autolearn=disabled
\r
13 Received: from arlo.cworth.org ([127.0.0.1])
\r
14 by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id jrbxs_MuO6Ho for <notmuch@notmuchmail.org>;
\r
16 Sun, 24 Jul 2016 05:57:47 -0700 (PDT)
\r
17 Received: from che.mayfirst.org (che.mayfirst.org [162.247.75.118])
\r
18 by arlo.cworth.org (Postfix) with ESMTP id CDBB46DE00E8
\r
19 for <notmuch@notmuchmail.org>; Sun, 24 Jul 2016 05:57:45 -0700 (PDT)
\r
20 Received: from fifthhorseman.net (h-67-100-110-71.nycm.ny.dynamic.megapath.net
\r
22 by che.mayfirst.org (Postfix) with ESMTPSA id 621C9F98B;
\r
23 Sun, 24 Jul 2016 08:57:44 -0400 (EDT)
\r
24 Received: by fifthhorseman.net (Postfix, from userid 1000)
\r
25 id 917832013C; Sat, 23 Jul 2016 17:27:39 +0200 (CEST)
\r
26 From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
\r
27 To: Nicolas Petton <nicolas@petton.fr>, notmuch@notmuchmail.org
\r
28 Subject: Re: Applying patches directly from emails?
\r
29 In-Reply-To: <87d1m58jzo.fsf@petton.fr>
\r
30 References: <87d1m58jzo.fsf@petton.fr>
\r
31 User-Agent: Notmuch/0.22+77~gaba8744 (https://notmuchmail.org) Emacs/24.5.1
\r
32 (x86_64-pc-linux-gnu)
\r
33 Date: Sat, 23 Jul 2016 11:27:39 -0400
\r
34 Message-ID: <87fur0l6hg.fsf@alice.fifthhorseman.net>
\r
36 Content-Type: text/plain
\r
37 X-BeenThere: notmuch@notmuchmail.org
\r
38 X-Mailman-Version: 2.1.20
\r
40 List-Id: "Use and development of the notmuch mail system."
\r
41 <notmuch.notmuchmail.org>
\r
42 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,
\r
43 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
44 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>
\r
45 List-Post: <mailto:notmuch@notmuchmail.org>
\r
46 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
47 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,
\r
48 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
49 X-List-Received-Date: Sun, 24 Jul 2016 12:57:55 -0000
\r
53 On Fri 2016-07-22 17:02:03 -0400, Nicolas Petton wrote:
\r
55 > I'd like to be able to apply patches sent from emails, either as
\r
56 > attachments or inlined.
\r
58 > Notmuch can show inline patches as diffs, which is very handy, but I
\r
59 > didn't find a builtin way to apply these inline patches (or attached
\r
60 > ones) directly from the email, maybe I overlooked something?
\r
62 If you're asking about notmuch-emacs, I just use "|" (or ". |" if a
\r
63 MIME subpart is the patch instead of the whole message) to pipe the
\r
64 patch into some command i care about.
\r
66 For example, if it's a git-format-generated e-mail, i'll hit the pipe
\r
67 character ("|") and then in the minibuffer i'll do:
\r
69 cd ~/src/notmuch/notmuch && git am
\r
71 does that make sense? If that doesn't work for you, can you be more
\r
72 specific about what you're trying to do?
\r