Quote:
$gettok($rawmsg, 1, 32) will return the *!*@* formatted name as the server is reporting it


Easier yet, use $fulladdress.