lib/classes/Swift/Plugins/RedirectingPlugin.php
private function filterHeaderSet(Swift_Mime_SimpleHeaderSet $headerSet, $type)
    {
        foreach ($headerSet->getAll($type) as $headers) {
            $headers->setNameAddresses($this->filterNameAddresses($headers->getNameAddresses()));
        }
    }
private function filterHeaderSet(Swift_Mime_SimpleHeaderSet $headerSet, $type)
    {
        foreach ($headerSet->getAll($type) as $headers) {
            $headers->setNameAddresses($this->filterNameAddresses($headers->getNameAddresses()));
        }
    }
private function filterHeaderSet ( Swift_Mime_SimpleHeaderSet $ headerSet , $ type ) { foreach ( $ headerSet -> getAll ( $ type ) as $ headers ) { $ headers -> setNameAddresses ( $ this -> filterNameAddresses ( $ headers -> getNameAddresses ( ) ) ) ; } }
Filter header set against a whitelist of regular expressions.

@param string $type
Filter header set against a whitelist of regular expressions .