Based on the documentation on the email.getaddresses()
module, I would expect getaddresses('"John Doe" <johndoe@mail.com>')
to return:
[('John Doe', 'johndoe@mail.com')]
but what it returns (under Python 3.3) is:
[('', ', J, o, h, n, , D, o, e, '), ('', ''), ('', ''), ('', 'j'), ('', 'o'), ('', 'h'), ('', 'n'), ('', 'd'), ('', 'o'), ('', 'e'), ('', '@'), ('', 'm'), ('', 'a'), ('', 'i'), ('', 'l'), ('', '.'), ('', 'c'), ('', 'o'), ('', 'm'), ('', '')]
which is a little less than optimally useful.
What gives?