Actially, the module uses rfc822.py to parse the message's header,
which contains a function getdate() which returns the date in a format
that's acceptable for time.mktime(). There's one flaw: it doesn't
handle dst strings yet, and some mailers put entirely illegal stuff in
the date fields so it will never reach an accuracy of 100% -- but it
could get pretty darn close with only a little more work...
--Guido van Rossum, CWI, Amsterdam <mailto:Guido.van.Rossum@cwi.nl>
<http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>