<?php

class SV_ContactUsThread_XenForo_Model_SpamPrevention extends XFCP_SV_ContactUsThread_XenForo_Model_SpamPrevention
{
    public function getUserLogsByIpOrEmail($ip, $email, $days, $limit = 5)
    {
        $ip = XenForo_Helper_Ip::convertIpStringToBinary($ip);
        $date = XenForo_Application::$time - ($days * 86400);

        return $this->fetchAllKeyed(
            $this->limitQueryResults(
                "SELECT log.*, user.*
                    FROM xf_spam_trigger_log AS log
                    LEFT JOIN xf_user AS user ON (log.user_id = user.user_id)
                    WHERE log.content_type = 'user'
                        AND log.log_date > ?
                        AND (log.ip_address = ? OR user.email = ?)
                    ORDER BY log.log_date DESC",
                $limit
            ),
            'trigger_log_id',
            array($date, $ip, $email)
        );
    }
}

<?php

class SV_ContactUsThread_XenForo_Model_SpamPrevention extends XFCP_SV_ContactUsThread_XenForo_Model_SpamPrevention
{
    public function getUserLogsByIpOrEmail($ip, $email, $days, $limit = 5)
    {
        $ip = XenForo_Helper_Ip::convertIpStringToBinary($ip);
        $date = XenForo_Application::$time - ($days * 86400);

        return $this->fetchAllKeyed(
            $this->limitQueryResults(
                "SELECT log.*, user.*
                    FROM xf_spam_trigger_log AS log
                    LEFT JOIN xf_user AS user ON (log.user_id = user.user_id)
                    WHERE log.content_type = 'user'
                        AND log.log_date > ?
                        AND (log.ip_address = ? OR user.email = ? OR log.details like ?)
                    ORDER BY log.log_date DESC",
                $limit
            ),
            'trigger_log_id',
            array($date, $ip, $email, '%'.$email.'%')
        );
    }
}

Allow matching of email in the details
Allow matching of email in the details
