[Tutor] Fixing garbled email addresses
Dotan Cohen
dotancohen at gmail.com
Tue May 1 12:08:48 CEST 2007
I have had the misfortune of having a university Windows machine
garble all the email addresses in my addressbook (a txt file so that I
can use it both on my home Fedora machine and on the university
Windows machines). I figure this is as good a time as any to start
learning python and fix the file. How can I iteriate through a text
file that looks like this:
"=?UTF-8?B?157XqNeZ15Qg15nXoNeY16bXnw==?=" <someuser at t2.technion.ac.il>,
"=?UTF-8?B?157XqNenINen15nXmNek15XXkQ==?=" <someuser at gmail.com>,
"=?UTF-8?B?157XqdeUINem15LXkNeZ?=" <someuser at walla.co.il>,
and have it return:
someuser at t2.technion.ac.il,
someuser at gmail.com,
someuser at walla.co.il,
Thanks in advance.
Dotan Cohen
http://lyricslist.com/
http://what-is-what.com/
More information about the Tutor
mailing list