Re: Applying patches directly from emails?

Subject: Re: Applying patches directly from emails?

Date: Sat, 13 Aug 2016 13:38:38 +0300

To: Nicolas Petton, Daniel Kahn Gillmor, notmuch@notmuchmail.org

Cc:

From: Jani Nikula


On Sun, 24 Jul 2016, Nicolas Petton <nicolas@petton.fr> wrote:
> Daniel Kahn Gillmor <dkg@fifthhorseman.net> writes:
>> 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.
>
> That'd work, but I was hoping for something more integrated.
>
> For Emacs development & GNUS, there's `debbugs-gnu-apply-patch', which,
> given a root directory, will apply a patch, inlined or attached to the
> email, to the Emacs repository.

I find most projects have their own peculiarities, and I'm not convinced
it's beneficial for notmuch-emacs to include code to do this. It's
fairly trivial to write shell scripts to do that, and you can then pipe
the message(s) to the script, doing the cd and any other things you want
done as part of the process. Moreover, such scripts are useful for users
of other MUAs as well.

BR,
Jani.

Thread: