]> granicus.if.org Git - python/commit
parseaddr(): Don't use rfc822.parseaddr() because this now implies a
authorBarry Warsaw <barry@python.org>
Mon, 15 Apr 2002 22:00:25 +0000 (22:00 +0000)
committerBarry Warsaw <barry@python.org>
Mon, 15 Apr 2002 22:00:25 +0000 (22:00 +0000)
commit24fd0252c474bb1e4189dd6b92e572343f27f0f9
tree412dfe3a9ccce478754c2f314bb9d60ab6db38d8
parent0e0b6180ba2f85d54bdaeb4c36aac8bb01dd1759
parseaddr(): Don't use rfc822.parseaddr() because this now implies a
double call to AddressList.getaddrlist(), and /that/ always returns an
empty list for the second and subsequent calls.

Instead, instantiate an AddressList directly, and get the parsed
addresses out of the addresslist attribute.
Lib/email/Utils.py