use unquoted email address for MIA lookup

This commit is contained in:
Jan Dittberner 2010-06-11 22:04:14 +02:00
parent dd9d8f6c52
commit 9242fdafde
2 changed files with 2 additions and 1 deletions

View file

@ -100,7 +100,7 @@ owndndoms.pattern=ssh merkel.debian.org ldapsearch -u -x -H ldap://db.debian.org
owndndoms.type=ssh owndndoms.type=ssh
owndndoms.optional=true owndndoms.optional=true
# MIA information # MIA information
miainfo.pattern=ssh merkel.debian.org /srv/qa.debian.org/mia/mia-query %(email)s miainfo.pattern=ssh merkel.debian.org /srv/qa.debian.org/mia/mia-query %(emailnoq)s
miainfo.type=ssh miainfo.type=ssh
# Group information # Group information
groupinfo.pattern=ssh merkel.debian.org id %(username)s groupinfo.pattern=ssh merkel.debian.org id %(username)s

View file

@ -76,6 +76,7 @@ def build_urls(fields):
if fpr: if fpr:
qfields['gpgfp'] = fpr[0] qfields['gpgfp'] = fpr[0]
qfields['firstchar'] = fields['email'][0].encode('utf8') qfields['firstchar'] = fields['email'][0].encode('utf8')
qfields['emailnoq'] = fields['email'].encode('utf8')
for section in [section.strip() for section in \ for section in [section.strip() for section in \
my_config.get('DEFAULT', my_config.get('DEFAULT',
'urlbuilder.sections').split(',')]: 'urlbuilder.sections').split(',')]: