[PATCH 2/2] dim: Catch mailman mangling
Daniel Vetter
daniel.vetter at ffwll.ch
Tue Feb 12 09:46:35 UTC 2019
fd.o had to switch to mangling From: addresses for a lot of domains.
Catch them.
Cc: Daniel Stone <daniel at fooishbar.org>
Signed-off-by: Daniel Vetter <daniel.vetter at intel.com>
---
dim | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/dim b/dim
index 9592851cdca8..cb9c0671a501 100755
--- a/dim
+++ b/dim
@@ -858,6 +858,13 @@ function checkpatch_commit_push
# outlook mangles mails into "Last, First"
author_outlook=$(git show -s $sha1 --format="format:%an" | sed -e 's/\([^ ]*\) \(.*\)/\2, \1/')
+
+ # check for fd.o mailman From: mangling
+ if git show -s $sha1 --format="format:%ae %ce"| grep -q '@lists\.freedesktop\.org' ; then
+ echoerr "$cite: mailman wrangled email address detected."
+ rv=1
+ fi
+
# check for author sign-off
if ! git show -s $sha1 | grep -qi "Signed-off-by:.*\\($author\\|$author_outlook\\)" ; then
echoerr "$cite: author Signed-off-by missing."
--
2.20.1
More information about the dim-tools
mailing list