summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2013-05-07 02:07:36 +0200
committerSebastian Pipping <sebastian@pipping.org>2013-05-07 02:07:36 +0200
commit9e2d94d149d2dc1440361606de4075b93ef997a7 (patch)
treef42fddcb9f0ef41e5038e27aa5cab58a98461f90
parentMap zhllg to r0bertz (diff)
downloaduserinfo-scripts-9e2d94d149d2dc1440361606de4075b93ef997a7.tar.gz
userinfo-scripts-9e2d94d149d2dc1440361606de4075b93ef997a7.tar.bz2
userinfo-scripts-9e2d94d149d2dc1440361606de4075b93ef997a7.zip
Add some mail address harvester protection (.. for the future)
-rwxr-xr-xgit-identity-map.py22
1 files 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)