threads / discuss / 47383

git send-email could check for no To: line

Subject: git send-email could check for no To: line

## tl;dr

One message between Dec 6, 2017 and Dec 6, 2017.

replies: 0people: 1as markdown or json

Matthew Wilcox· Dec 6, 2017, 01:06 UTC · lore

I keep coming up with new and innovative ways to send stupid-looking emails with git send-email. Please save me from myself.

My latest SNAFU is to spend so much time setting up the 'cc' list in the git-format-patch step that I completely forgot to put anybody on the 'to' line, and even being prompted by git send-email that I might want to add somebody to the 'To' line wasn't enough.

Could there be an extra confirmation, perhaps in send_message() that
        if ($cc ne '' && $to eq '')
		are_you_sure()
(you don't want me writing perl.  you really don't.)

← back to recent threads