--- /dev/null
+Return-Path: <jani@nikula.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 arlo.cworth.org (Postfix) with ESMTP id 73CEF6DE39A0\r
+ for <notmuch@notmuchmail.org>; Sat, 13 Aug 2016 03:33:56 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.572\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.572 tagged_above=-999 required=5 tests=[AWL=0.148,\r
+ DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7,\r
+ RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] 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 LPABQcH_V7_0 for <notmuch@notmuchmail.org>;\r
+ Sat, 13 Aug 2016 03:33:48 -0700 (PDT)\r
+Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com\r
+ [74.125.82.65]) by arlo.cworth.org (Postfix) with ESMTPS id 42E6D6DE399F for\r
+ <notmuch@notmuchmail.org>; Sat, 13 Aug 2016 03:33:48 -0700 (PDT)\r
+Received: by mail-wm0-f65.google.com with SMTP id q128so1822417wma.1\r
+ for <notmuch@notmuchmail.org>; Sat, 13 Aug 2016 03:33:48 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=nikula-org.20150623.gappssmtp.com; s=20150623;\r
+ h=from:to:subject:in-reply-to:references:date:message-id:mime-version;\r
+ bh=cMhTRMmdZ8INJVx/OXWw2I1fDBc6A3LGZCS17OWRuj0=;\r
+ b=VBgIH9e2Vt37PoHOOyxBC0UFQdsPvvvm8wCh0EfQOU9GvEyInFHbQgOBoMPG8yXN7b\r
+ wQdGY79fnKHmpDLOM5HymrPy4q9lDHegFaYeGSypC/c/uTXgO4JaYI7hpxIY3D7Xgocd\r
+ B65Ai1UaLuPJPQzmgy3c8lteSl11l0lvNMGu0sAyKDYdVbujDZd8ygJ7EugLx/VHn+4j\r
+ MT1qmHpuVSBJCDU1DvTxjZJCHw/eT+JPRjMfbQSTOi9GiP319eyR/oCODgGmAtfRRgNw\r
+ LsoXjwK4NoAlZevJkqdyC9SuLJv3GsIzNuQuF/dZLMgFnen8nDLs0r+TFbmFo+iQ+UXv\r
+ WynQ==\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=1e100.net; s=20130820;\r
+ h=x-gm-message-state:from:to:subject:in-reply-to:references:date\r
+ :message-id:mime-version;\r
+ bh=cMhTRMmdZ8INJVx/OXWw2I1fDBc6A3LGZCS17OWRuj0=;\r
+ b=cvQjKgTDoWJW/4V5wT2WRac0wGRNvJRGkNWKzWOwm6eYi5iOi7U4Fa13mrFSP69ykn\r
+ gn9m1IX8NoRoxjbl9mGtnu1La9k9m+7D2c+HnEgnzeU55hYyb6HDuIgg13engbYKxujw\r
+ +qG4YQexDcH6oLxPXG4eGfG9KKtVelIEjvOl+DUpDMJlXKYf1au683UH6TXhUsGWb8on\r
+ PBLINseywHIe1FD6Ixq87TEasKEE3byEvRo1AEXP8aPBSljsy3qty+e3HBW7EKR6YpRS\r
+ lboV8ixAVIutMzMuzFppked85XBHD6EiIgEoY52anqWen/WaJCuTQI72iCbgqeOh/00n\r
+ dFtQ==\r
+X-Gm-Message-State:\r
+ AEkoouve48dHxmqhNig3gpW7B3TziozSGaFNiLpWvJg0lwrxrlWgqvHFJmkuYlBw37QNJw==\r
+X-Received: by 10.194.149.133 with SMTP id ua5mr19385752wjb.79.1471084426366; \r
+ Sat, 13 Aug 2016 03:33:46 -0700 (PDT)\r
+Received: from localhost (mobile-access-bcee63-250.dhcp.inet.fi.\r
+ [188.238.99.250])\r
+ by smtp.gmail.com with ESMTPSA id o142sm6558462wme.20.2016.08.13.03.33.45\r
+ (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Sat, 13 Aug 2016 03:33:45 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>,\r
+ Nicolas Petton <nicolas@petton.fr>, notmuch@notmuchmail.org\r
+Subject: Re: Applying patches directly from emails?\r
+In-Reply-To: <87fur0l6hg.fsf@alice.fifthhorseman.net>\r
+References: <87d1m58jzo.fsf@petton.fr>\r
+ <87fur0l6hg.fsf@alice.fifthhorseman.net>\r
+Date: Sat, 13 Aug 2016 13:32:22 +0300\r
+Message-ID: <87popd7ydl.fsf@nikula.org>\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: Sat, 13 Aug 2016 10:33:56 -0000\r
+\r
+On Sat, 23 Jul 2016, Daniel Kahn Gillmor <dkg@fifthhorseman.net> wrote:\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
+Additionally, you can expand all the messages you want applied, collapse\r
+others, and use "C-u |" to pipe all open messages.\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
+I usually end up doing M-x cd RET first, with the convenience of\r
+directory history and completion, then piping to git am. The end result\r
+is the same.\r
+\r
+\r
+BR,\r
+Jani.\r