#!/usr/bin/env python3 import json import sys data = sys.stdin.read() data = json.loads(data) author_name = data["author_name"] author_email = data["author_email"] if " via " in author_name and "@sourceware.org" in author_email: print( "The author name ({}) and email address ({}) appear to have been munged by a mailing list.".format( author_name, author_email ) ) print("Please amend to the commit to put the proper author name and email address.") sys.exit(1)