Description:
------------
While Net_Sieve doesn't support start TLS, we have hacked it to use SSL, by specifying the host as 'ssl://mailserver.tld'
which PEAR does correctly. This fails when we use murder, since the referral drops the 'ssl://' and just directs to 'backend.tld'
Even if it's a hack, it seems referrals should respect the original connection method. The following is a patch that fixes this for us:
948,949c948,951
< //$this->_data['host'] = $matches[1];
< $this->_data['host'] = $matches[2];
---
>
> //replace the old host with the referral host preserving any protocol prefix
> $this->_data['host'] = preg_replace('/\w+(?!(\w|\:\/\/)).*/',$matches[2], $this->_data['host']);
>