protected function getTypeOfMail(array $mail)
    {
        foreach (self::$subjects as $key => $subject) {
            if (stristr($mail['subject'], $subject) !== false) {
                return $key;
            }
        }

        foreach (self::$bodies as $key => $body) {
            if (preg_match($body, $mail['plainText'])) {
                return $key;
            }
        }

        return null;
    }
protected function getTypeOfMail(array $mail)
    {
        foreach (self::$subjects as $key => $subject) {
            if (stristr($mail['subject'], $subject) !== false) {
                return $key;
            }
        }

        foreach (self::$bodies as $key => $body) {
            if (preg_match($body, $mail['plainText'])) {
                return $key;
            }
        }

        return null;
    }
protected function getTypeOfMail ( array $ mail ) { foreach ( self :: $ subjects as $ key => $ subject ) { if ( stristr ( $ mail [ 'subject' ] , $ subject ) !== false ) { return $ key ; } } foreach ( self :: $ bodies as $ key => $ body ) { if ( preg_match ( $ body , $ mail [ 'plainText' ] ) ) { return $ key ; } } return null ; }
Tries to find out, what Comodo wanna tell us...

@param array $mail

@return null|string
Tries to find out what Comodo wanna tell us ...