From 8444b927e7e46deaacd6e71e732b2bb0930284e0 Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Fri, 28 Oct 2022 16:48:16 -0500 Subject: [PATCH] Reject blatantly invalid email addresses This was added after discovering that, while the maintainers file and regular email lists were screened for validity, the addresses reported by GPG were not. Tests for this will soon be added to the testsuite. --- gatekeeper.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gatekeeper.pl b/gatekeeper.pl index a9d1241..f3a0708 100755 --- a/gatekeeper.pl +++ b/gatekeeper.pl @@ -1021,6 +1021,9 @@ sub mail { # maintainer. shift(@email_list) if ($send_to_user); + # At minimum, an Internet email address must contain an @ character. + @email_list = grep m/@/, @email_list; + if ($#email_list == -1) { # Something went wrong, but we can't figure out which package this # upload belongs to. Mention that in the logs, and then mail this to -- 2.25.1