Stefan Beller <sbeller@xxxxxxxxxx> writes: > On Fri, Dec 9, 2016 at 3:52 PM, Junio C Hamano <gitster@xxxxxxxxx> wrote: >> Stefan Beller <sbeller@xxxxxxxxxx> writes: >> >>> So you are suggesting to >>> * have the check later in the game (e.g. just after asking >>> "Send this email? ([y]es|[n]o|[q]uit|[a]ll): " as then other information >>> such as additional @to @cc are available. >> >> Yeah, probably before the loop starts asking that question for each >> message. And hook does not necessarily need to cause the program to >> die. The question can be reworded to "Your hook says no, but do you >> really want to send it?", > > You could, but... Yes, "does not necessarily need to die" is different from "hence you must avoid dying". Running the hook before you start the loop to ask for each message merely makes it possible to avoid dying.