Re: Sending patches with KMail
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:52:48
Jonathan Nieder [off-list ref] writes:
My favorite approach would be to introduce a new option --format=plain|mbox, with the default being mbox, allowing format-patch --format=plain to produce a nice patch that does _not_ include a "From " line or q-encode its header lines, ready for use without much tweaking in an email body as an attachment.
I actually like the removal of q-encoding part. But I am not sure what headers it should produce. What should the beginning of the output file look like? Does it just have "Subject: ", or does it still have the "From: ", "Date: " and "Subject: ", the first two of which the user would almost always want to remove? If we can decide a sane behaviour wrt the pseudo header, and if the option is made _incompatible_ with --stdout when (and only when) emitting more than one message, then I think it would be a good addition.