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 315B56DE02A7 for ; Sun, 24 Jul 2016 05:57:55 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.363 X-Spam-Level: X-Spam-Status: No, score=0.363 tagged_above=-999 required=5 tests=[AWL=-0.441, DATE_IN_PAST_12_24=0.804] 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 jrbxs_MuO6Ho for ; Sun, 24 Jul 2016 05:57:47 -0700 (PDT) Received: from che.mayfirst.org (che.mayfirst.org [162.247.75.118]) by arlo.cworth.org (Postfix) with ESMTP id CDBB46DE00E8 for ; Sun, 24 Jul 2016 05:57:45 -0700 (PDT) Received: from fifthhorseman.net (h-67-100-110-71.nycm.ny.dynamic.megapath.net [67.100.110.71]) by che.mayfirst.org (Postfix) with ESMTPSA id 621C9F98B; Sun, 24 Jul 2016 08:57:44 -0400 (EDT) Received: by fifthhorseman.net (Postfix, from userid 1000) id 917832013C; Sat, 23 Jul 2016 17:27:39 +0200 (CEST) From: Daniel Kahn Gillmor To: Nicolas Petton , notmuch@notmuchmail.org Subject: Re: Applying patches directly from emails? In-Reply-To: <87d1m58jzo.fsf@petton.fr> References: <87d1m58jzo.fsf@petton.fr> User-Agent: Notmuch/0.22+77~gaba8744 (https://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) Date: Sat, 23 Jul 2016 11:27:39 -0400 Message-ID: <87fur0l6hg.fsf@alice.fifthhorseman.net> 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: Sun, 24 Jul 2016 12:57:55 -0000 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. 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 does that make sense? If that doesn't work for you, can you be more specific about what you're trying to do? --dkg