From 9e2d94d149d2dc1440361606de4075b93ef997a7 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Tue, 7 May 2013 02:07:36 +0200 Subject: Add some mail address harvester protection (.. for the future) --- git-identity-map.py | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/git-identity-map.py b/git-identity-map.py index ec44adb..e39dd2b 100755 --- a/git-identity-map.py +++ b/git-identity-map.py @@ -27,16 +27,22 @@ _past_nicknames_for = { } -_external_contributors = { - 'caratorn': ('Charles Clément', 'caratorn@gmail.com'), - 'frquadrat': ('Frank-Ralph Reiser', 'frank.ralph.reiser@gmail.com'), - 'hey_neken': ('Mikel Olasgasti', 'hey_neken@mundurat.net'), - 'mellen': ('Tais M. Hansen', 'mellen@osd.dk'), - 'tacvbo': ('Octavio Ruiz', 'tacvbo@tacvbo.net'), - 'rambaldi': ('Rambaldi', 'rambaldi@xs4all.nl'), - 'svoop': ('Sven Schwyn', 'gentoo@bitcetera.com'), +_external_contributors_spam_protected = { + 'caratorn': ('Charles Clément', 'caratorn', 'gmail.com'), + 'frquadrat': ('Frank-Ralph Reiser', 'frank.ralph.reiser', 'gmail.com'), + 'hey_neken': ('Mikel Olasgasti', 'hey_neken', 'mundurat.net'), + 'mellen': ('Tais M. Hansen', 'mellen', 'osd.dk'), + 'tacvbo': ('Octavio Ruiz', 'tacvbo', 'tacvbo.net'), + 'rambaldi': ('Rambaldi', 'rambaldi', 'xs4all.nl'), + 'svoop': ('Sven Schwyn', 'gentoo', 'bitcetera.com'), } +_external_contributors = dict([ + (nick, (name, '%s@%s' % (user, host))) \ + for (nick, (name, user, host)) \ + in _external_contributors_spam_protected.items() + ]) + def _produce_line(svn_nick, realname, address): line = '%s = %s <%s>' % (svn_nick, realname, address) -- cgit v1.2.3-65-gdbad