add support for "firstchar" in patterns

This commit is contained in:
Jan Dittberner 2010-05-10 21:10:37 +02:00
parent f5879c5ab0
commit ea095463e1

View file

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