tsv2email

I created a small program that converts names and emails into a format that email clients can accept. It is also online at http://utilitymill.com/utility/tsv2email.

good_addresses = []
for line in input_table.split('rn'):
    if not line:
        continue
    good_addresses.append('"%s %s" <%s>' % tuple(line.split('t')))
print ', '.join(good_addresses)
Advertisements