forked from extern/egroupware
* emailadmin: allow to specify (configure) a different sieveHost than your imapServer
This commit is contained in:
parent
765864c89b
commit
a78a3d43d6
@ -616,6 +616,10 @@ class emailadmin_bo extends so_sql
|
||||
$icServer->adminUsername = $data['imapAdminUsername'];
|
||||
$icServer->adminPassword = $data['imapAdminPW'];
|
||||
$icServer->enableSieve = ($data['imapEnableSieve'] == 'yes');
|
||||
if (!empty($data['imapSieveServer']))
|
||||
{
|
||||
$icServer->sieveHost = $data['imapSieveServer'];
|
||||
}
|
||||
$icServer->sievePort = $data['imapSievePort'];
|
||||
if ($imapAuthType == 'admin') {
|
||||
if (!empty($data['imapAuthUsername'])) $icServer->username = $icServer->loginName = $data['imapAuthUsername'];
|
||||
|
@ -69,7 +69,15 @@ class emailadmin_sieve extends Net_Sieve
|
||||
{
|
||||
if ($this->debug) error_log(__CLASS__.'::'.__METHOD__.array2string($euser));
|
||||
if(is_a($_icServer,'defaultimap') && $_icServer->enableSieve) {
|
||||
$sieveHost = $_icServer->host;
|
||||
if (!empty($_icServer->sieveHost))
|
||||
{
|
||||
$sieveHost = $_icServer->sieveHost;
|
||||
}
|
||||
else
|
||||
{
|
||||
$sieveHost = $_icServer->host;
|
||||
}
|
||||
//error_log(__METHOD__.__LINE__.'->'.$sieveHost);
|
||||
$sievePort = $_icServer->sievePort;
|
||||
$useTLS = $_icServer->encryption > 0;
|
||||
if ($euser) {
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user