]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools/Scripts/PatchCheck.py: Detect emails rewritten by Groups.Io
authorPhilippe Mathieu-Daude <philmd@redhat.com>
Tue, 4 Feb 2020 22:49:15 +0000 (06:49 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 6 Feb 2020 13:16:09 +0000 (13:16 +0000)
Due to strict DMARC / DKIM / SPF rules, Groups.Io sometimes rewrite
the author email. See for example commit df851da3ceff5b6bcf5e12616.
Add a check to detect these rewrites with PatchCheck.py.

Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Scripts/PatchCheck.py

index 6823cc69bb9f84d1dce476f3258031c9d9ed1f2a..73252ef355ff18c1a7b024f4dc6aa950dec081c0 100755 (executable)
@@ -79,6 +79,10 @@ class EmailAddressCheck:
             self.error("The email address cannot contain a space: " +\r
                        mo.group(3))\r
 \r
+        if ' via Groups.Io' in name and mo.group(3).endswith('@groups.io'):\r
+            self.error("Email rewritten by lists DMARC / DKIM / SPF: " +\r
+                       email)\r
+\r
 class CommitMessageCheck:\r
     """Checks the contents of a git commit message."""\r
 \r