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>
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