From be352c56d13cc6ba3ff7abaf629c9782c227ad9a Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Sat, 13 Aug 2016 13:32:22 +0300 Subject: [PATCH] Re: Applying patches directly from emails? --- 1f/fbf1e19a28ff9c2eee6a3c9d82535276a43462 | 108 ++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 1f/fbf1e19a28ff9c2eee6a3c9d82535276a43462 diff --git a/1f/fbf1e19a28ff9c2eee6a3c9d82535276a43462 b/1f/fbf1e19a28ff9c2eee6a3c9d82535276a43462 new file mode 100644 index 000000000..2627cf9c9 --- /dev/null +++ b/1f/fbf1e19a28ff9c2eee6a3c9d82535276a43462 @@ -0,0 +1,108 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 73CEF6DE39A0 + for ; Sat, 13 Aug 2016 03:33:56 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.572 +X-Spam-Level: +X-Spam-Status: No, score=-0.572 tagged_above=-999 required=5 tests=[AWL=0.148, + DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, + RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id LPABQcH_V7_0 for ; + Sat, 13 Aug 2016 03:33:48 -0700 (PDT) +Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com + [74.125.82.65]) by arlo.cworth.org (Postfix) with ESMTPS id 42E6D6DE399F for + ; Sat, 13 Aug 2016 03:33:48 -0700 (PDT) +Received: by mail-wm0-f65.google.com with SMTP id q128so1822417wma.1 + for ; Sat, 13 Aug 2016 03:33:48 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=nikula-org.20150623.gappssmtp.com; s=20150623; + h=from:to:subject:in-reply-to:references:date:message-id:mime-version; + bh=cMhTRMmdZ8INJVx/OXWw2I1fDBc6A3LGZCS17OWRuj0=; + b=VBgIH9e2Vt37PoHOOyxBC0UFQdsPvvvm8wCh0EfQOU9GvEyInFHbQgOBoMPG8yXN7b + wQdGY79fnKHmpDLOM5HymrPy4q9lDHegFaYeGSypC/c/uTXgO4JaYI7hpxIY3D7Xgocd + B65Ai1UaLuPJPQzmgy3c8lteSl11l0lvNMGu0sAyKDYdVbujDZd8ygJ7EugLx/VHn+4j + MT1qmHpuVSBJCDU1DvTxjZJCHw/eT+JPRjMfbQSTOi9GiP319eyR/oCODgGmAtfRRgNw + LsoXjwK4NoAlZevJkqdyC9SuLJv3GsIzNuQuF/dZLMgFnen8nDLs0r+TFbmFo+iQ+UXv + WynQ== +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:from:to:subject:in-reply-to:references:date + :message-id:mime-version; + bh=cMhTRMmdZ8INJVx/OXWw2I1fDBc6A3LGZCS17OWRuj0=; + b=cvQjKgTDoWJW/4V5wT2WRac0wGRNvJRGkNWKzWOwm6eYi5iOi7U4Fa13mrFSP69ykn + gn9m1IX8NoRoxjbl9mGtnu1La9k9m+7D2c+HnEgnzeU55hYyb6HDuIgg13engbYKxujw + +qG4YQexDcH6oLxPXG4eGfG9KKtVelIEjvOl+DUpDMJlXKYf1au683UH6TXhUsGWb8on + PBLINseywHIe1FD6Ixq87TEasKEE3byEvRo1AEXP8aPBSljsy3qty+e3HBW7EKR6YpRS + lboV8ixAVIutMzMuzFppked85XBHD6EiIgEoY52anqWen/WaJCuTQI72iCbgqeOh/00n + dFtQ== +X-Gm-Message-State: + AEkoouve48dHxmqhNig3gpW7B3TziozSGaFNiLpWvJg0lwrxrlWgqvHFJmkuYlBw37QNJw== +X-Received: by 10.194.149.133 with SMTP id ua5mr19385752wjb.79.1471084426366; + Sat, 13 Aug 2016 03:33:46 -0700 (PDT) +Received: from localhost (mobile-access-bcee63-250.dhcp.inet.fi. + [188.238.99.250]) + by smtp.gmail.com with ESMTPSA id o142sm6558462wme.20.2016.08.13.03.33.45 + (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Sat, 13 Aug 2016 03:33:45 -0700 (PDT) +From: Jani Nikula +To: Daniel Kahn Gillmor , + Nicolas Petton , notmuch@notmuchmail.org +Subject: Re: Applying patches directly from emails? +In-Reply-To: <87fur0l6hg.fsf@alice.fifthhorseman.net> +References: <87d1m58jzo.fsf@petton.fr> + <87fur0l6hg.fsf@alice.fifthhorseman.net> +Date: Sat, 13 Aug 2016 13:32:22 +0300 +Message-ID: <87popd7ydl.fsf@nikula.org> +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sat, 13 Aug 2016 10:33:56 -0000 + +On Sat, 23 Jul 2016, Daniel Kahn Gillmor wrote: +> Hi Nicolas-- +> +> On Fri 2016-07-22 17:02:03 -0400, Nicolas Petton wrote: +> +>> I'd like to be able to apply patches sent from emails, either as +>> attachments or inlined. +>> +>> Notmuch can show inline patches as diffs, which is very handy, but I +>> didn't find a builtin way to apply these inline patches (or attached +>> ones) directly from the email, maybe I overlooked something? +> +> If you're asking about notmuch-emacs, I just use "|" (or ". |" if a +> MIME subpart is the patch instead of the whole message) to pipe the +> patch into some command i care about. + +Additionally, you can expand all the messages you want applied, collapse +others, and use "C-u |" to pipe all open messages. + +> For example, if it's a git-format-generated e-mail, i'll hit the pipe +> character ("|") and then in the minibuffer i'll do: +> +> cd ~/src/notmuch/notmuch && git am + +I usually end up doing M-x cd RET first, with the convenience of +directory history and completion, then piping to git am. The end result +is the same. + + +BR, +Jani. -- 2.26.2