mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 18:19:22 +03:00
Add alias support (domains)
This commit is contained in:
parent
a1d829c697
commit
28a125426a
26 changed files with 1014 additions and 92 deletions
|
|
@ -93,6 +93,11 @@ class Domain
|
|||
*/
|
||||
private $sWhiteList;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $sAliasName;
|
||||
|
||||
/**
|
||||
* @param string $sName
|
||||
* @param string $sIncHost
|
||||
|
|
@ -138,6 +143,7 @@ class Domain
|
|||
$this->bSieveAllowRaw = false;
|
||||
|
||||
$this->sWhiteList = \trim($sWhiteList);
|
||||
$this->sAliasName = '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -510,6 +516,25 @@ class Domain
|
|||
return $this->sWhiteList;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function AliasName()
|
||||
{
|
||||
return $this->sAliasName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $sAliasName
|
||||
* @return self
|
||||
*/
|
||||
public function SetAliasName($sAliasName)
|
||||
{
|
||||
$this->sAliasName = $sAliasName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $sEmail
|
||||
* @param string $sLogin = ''
|
||||
|
|
@ -558,7 +583,8 @@ class Domain
|
|||
'OutShortLogin' => $this->OutShortLogin(),
|
||||
'OutAuth' => $this->OutAuth(),
|
||||
'OutUsePhpMail' => $this->OutUsePhpMail(),
|
||||
'WhiteList' => $this->WhiteList()
|
||||
'WhiteList' => $this->WhiteList(),
|
||||
'AliasName' => $this->AliasName()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue