Cal Henderson (Flickr) wrote an article called Parsing Email Adresses in PHPParsing Email Addresses in PHP and shows how to do proper RFC (2)822-compliant Email Addressemail address parsing. You
You can also get the source code in phpPHP, pythonPython, and rubyRuby which is ccCreative Commons licensed.