mail addresses

Michele Simionato michele.simionato at gmail.com
Thu Sep 16 10:06:41 EDT 2004


Suppose I have an email.Message object.
I can extract the sender by using ["From"]. However sometimes I
get addresses in the form

John Doe <john.doe at somedomain.com>

sometimes I get addresses in the form

jane.doe at someotherdomain.org

Is there a standard way to normalize the addresses? It is only the second
form that I am interested in. TIA,

                                      Michele Simionato



More information about the Python-list mailing list