Re: Applying patches directly from emails?
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Sat, 23 Jul 2016 15:27:39 +0000 (11:27 +2000)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 23:22:15 +0000 (16:22 -0700)
08/b5baf676611f2903705a958df9e486c8c8a38c [new file with mode: 0644]

diff --git a/08/b5baf676611f2903705a958df9e486c8c8a38c b/08/b5baf676611f2903705a958df9e486c8c8a38c
new file mode 100644 (file)
index 0000000..ac0f595
--- /dev/null
@@ -0,0 +1,74 @@
+Return-Path: <dkg@fifthhorseman.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 315B56DE02A7\r
+ for <notmuch@notmuchmail.org>; Sun, 24 Jul 2016 05:57:55 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.363\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.363 tagged_above=-999 required=5 tests=[AWL=-0.441,\r
+  DATE_IN_PAST_12_24=0.804] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id jrbxs_MuO6Ho for <notmuch@notmuchmail.org>;\r
+ Sun, 24 Jul 2016 05:57:47 -0700 (PDT)\r
+Received: from che.mayfirst.org (che.mayfirst.org [162.247.75.118])\r
+ by arlo.cworth.org (Postfix) with ESMTP id CDBB46DE00E8\r
+ for <notmuch@notmuchmail.org>; Sun, 24 Jul 2016 05:57:45 -0700 (PDT)\r
+Received: from fifthhorseman.net (h-67-100-110-71.nycm.ny.dynamic.megapath.net\r
+ [67.100.110.71])\r
+ by che.mayfirst.org (Postfix) with ESMTPSA id 621C9F98B;\r
+ Sun, 24 Jul 2016 08:57:44 -0400 (EDT)\r
+Received: by fifthhorseman.net (Postfix, from userid 1000)\r
+ id 917832013C; Sat, 23 Jul 2016 17:27:39 +0200 (CEST)\r
+From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>\r
+To: Nicolas Petton <nicolas@petton.fr>, notmuch@notmuchmail.org\r
+Subject: Re: Applying patches directly from emails?\r
+In-Reply-To: <87d1m58jzo.fsf@petton.fr>\r
+References: <87d1m58jzo.fsf@petton.fr>\r
+User-Agent: Notmuch/0.22+77~gaba8744 (https://notmuchmail.org) Emacs/24.5.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Sat, 23 Jul 2016 11:27:39 -0400\r
+Message-ID: <87fur0l6hg.fsf@alice.fifthhorseman.net>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://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: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 24 Jul 2016 12:57:55 -0000\r
+\r
+Hi Nicolas--\r
+\r
+On Fri 2016-07-22 17:02:03 -0400, Nicolas Petton wrote:\r
+\r
+> I'd like to be able to apply patches sent from emails, either as\r
+> attachments or inlined.\r
+>\r
+> Notmuch can show inline patches as diffs, which is very handy, but I\r
+> didn't find a builtin way to apply these inline patches (or attached\r
+> ones) directly from the email, maybe I overlooked something?\r
+\r
+If you're asking about notmuch-emacs, I just use "|" (or ". |" if a\r
+MIME subpart is the patch instead of the whole message) to pipe the\r
+patch into some command i care about.\r
+\r
+For example, if it's a git-format-generated e-mail, i'll hit the pipe\r
+character ("|") and then in the minibuffer i'll do:\r
+\r
+  cd ~/src/notmuch/notmuch && git am\r
+\r
+does that make sense?  If that doesn't work for you, can you be more\r
+specific about what you're trying to do?\r
+\r
+     --dkg\r