]> git.99rst.org Git - git.git/commit
send-email: expose header information to git-send-email's sendemail-validate hook
authorMichael Strawbridge <redacted>
Wed, 19 Apr 2023 20:27:03 +0000 (16:27 -0400)
committerJunio C Hamano <redacted>
Wed, 19 Apr 2023 21:19:09 +0000 (14:19 -0700)
commita8022c5f7b678189135b6caa3fadb3d8ec0c0d48
tree3d2d5787217c3096e3dcfb21e44ebccd715d2362
parent56adddaa06d376f3977ee91e8a769cd85439d21c
send-email: expose header information to git-send-email's sendemail-validate hook

To allow further flexibility in the Git hook, the SMTP header
information of the email which git-send-email intends to send, is now
passed as the 2nd argument to the sendemail-validate hook.

As an example, this can be useful for acting upon keywords in the
subject or specific email addresses.

Cc: Luben Tuikov <redacted>
Cc: Junio C Hamano <redacted>
Cc: Ævar Arnfjörð Bjarmason <redacted>
Acked-by: Luben Tuikov <redacted>
Signed-off-by: Michael Strawbridge <redacted>
Signed-off-by: Junio C Hamano <redacted>
Documentation/githooks.txt
git-send-email.perl
t/t9001-send-email.sh
git clone https://git.99rst.org/PROJECT