To just extract the email address out of an RFC822 line, it's faster and more reliable to just use a simple regex such as:
<?php
$rfc = '"Bob Smith" <bob@smith.com>';
preg_match('/[\\w\\.\\-+=*_]*@[\\w\\.\\-+=*_]*/', $rfc , $regs);
$parsed = $regs[0];
?>
The above code will pull out: bob@smith.com
No matter the variation of the RFC822 line, as long as there's a valid email address in it somewhere, the above regex will find it.
