>>>>> On Thu, 28 Nov 2019 11:27:32 +0100, Florian Weimer <fw@deneb.enyo.de> said:
Florian> Are there any ready-made Lisp macros to post a branch as a patch
Florian> series, allowing me to edit the cover letter before actual sending?
Florian> Gnus' MIME handling seems to be more reliable than that of git
Florian> send-email, and I'd like to use the Gnus setup and not the slightly
Florian> more problematic /usr/sbin/sendmail configuration for sending mail.
Florian> Another benefit is archival of outgoing email in Gnus.
Florian> Any suggestions?
This doesnʼt help with the MIME portion [1], but you can create an nndraft
group called eg 'patches' with 'G m', then do
git format-patch --numbered-files -o ~/News/drafts/patches --cover-letter HEAD~4
Which would create files 0 1 2 3 4, with '0' containing the cover
letter. Unfortunately '0' is not a valid article number, so you'd have
to script shifting all the numbers up by one. You'd probably want a
'--add-header=Gcc:<something>' to get the gnus archiving to work.
Since itʼs an nndraft group, you can do 'e' on any individual message
to edit it, and then use 'D S' to send all messages (or mark
individual messages with '#' and do 'D s').
Robert
Footnotes:
[1] What's wrong with git send-email's mime handling?