I'm having trouble with a MIMEdecoder. It ouputs the To: email address in the format:
Nobody <nobody@mydomain.com>

In order to get it to match my database records I need to trim()
I had used:
PHP Code:
$emailx trim($email"<>"); 
$db->execute_query("UPDATE mail_subscribers SET bounce_count=bounce_count+1 WHERE email = '$emailx'"); 
as my samples had no 'name'. Now it fails.

How can I trim the preceding 'name', whitespace & <>tags from the email?