lib/classes/Swift/Plugins/RedirectingPlugin.php
protected function isWhitelisted($recipient)
    {
        if (in_array($recipient, (array) $this->recipient)) {
            return true;
        }

        foreach ($this->whitelist as $pattern) {
            if (preg_match($pattern, $recipient)) {
                return true;
            }
        }

        return false;
    }
protected function isWhitelisted($recipient)
    {
        if (in_array($recipient, (array) $this->recipient)) {
            return true;
        }

        foreach ($this->whitelist as $pattern) {
            if (preg_match($pattern, $recipient)) {
                return true;
            }
        }

        return false;
    }
protected function isWhitelisted ( $ recipient ) { if ( in_array ( $ recipient , ( array ) $ this -> recipient ) ) { return true ; } foreach ( $ this -> whitelist as $ pattern ) { if ( preg_match ( $ pattern , $ recipient ) ) { return true ; } } return false ; }
Matches address against whitelist of regular expressions.

@return bool
Matches address against whitelist of regular expressions .