private function checkHeadersForInjection(\sb\Email $email)
    {

        if (\preg_match("~\r|:~i", $email->to) || preg_match("~\r|:~i", $email->from)) {
            return true;
        }

        return false;
    }
private function checkHeadersForInjection(\sb\Email $email)
    {

        if (\preg_match("~\r|:~i", $email->to) || preg_match("~\r|:~i", $email->from)) {
            return true;
        }

        return false;
    }
private function checkHeadersForInjection ( \ sb \ Email $ email ) { if ( \ preg_match ( "~\r|:~i" , $ email -> to ) || preg_match ( "~\r|:~i" , $ email -> from ) ) { return true ; } return false ; }
Checks email for injections in from and to addr

@param  \sb\Email $email
@return boolean
Checks email for injections in from and to addr