mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 10:09:20 +03:00
Deprecate most Domain methods
This commit is contained in:
parent
ea4cda6a91
commit
1e55f86f51
12 changed files with 80 additions and 69 deletions
|
|
@ -70,7 +70,7 @@ class LdapMailAccounts
|
|||
$username = $sEmail;
|
||||
$oActions = \RainLoop\Api::Actions();
|
||||
$oDomain = $oActions->DomainProvider()->Load(\MailSo\Base\Utils::GetDomainFromEmail($sEmail), true);
|
||||
if ($oDomain->IncShortLogin()){
|
||||
if ($oDomain->ImapSettings()->shortLogin){
|
||||
$username = @ldap_escape($this->RemoveEventualDomainPart($sEmail), "", LDAP_ESCAPE_FILTER);
|
||||
}
|
||||
|
||||
|
|
@ -101,7 +101,7 @@ class LdapMailAccounts
|
|||
if (count($mailAddressResults) < 1) {
|
||||
$this->logger->Write("Could not find user $username in LDAP! Overwriting of main mail address not possible.", \LOG_NOTICE, self::LOG_KEY);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
foreach($mailAddressResults as $mailAddressResult)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue