mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 18:19:22 +03:00
Change license to AGPL
This commit is contained in:
parent
86bb1d0dcf
commit
3246b2c81f
6 changed files with 722 additions and 40 deletions
|
|
@ -1932,7 +1932,7 @@ class Actions
|
|||
{
|
||||
$sLine = \trim(\implode('.', $aDomainParts), '. ');
|
||||
|
||||
$oDomain = $oDomainProvider->Load($sLine);
|
||||
$oDomain = $oDomainProvider->Load($sLine, false);
|
||||
if ($oDomain && $oDomain instanceof \RainLoop\Model\Domain)
|
||||
{
|
||||
$bAdded = true;
|
||||
|
|
@ -1951,6 +1951,24 @@ class Actions
|
|||
$iLimit--;
|
||||
}
|
||||
|
||||
if (!$bAdded)
|
||||
{
|
||||
$sLine = $sUserHost;
|
||||
$oDomain = $oDomainProvider->Load($sLine, true);
|
||||
if ($oDomain && $oDomain instanceof \RainLoop\Model\Domain)
|
||||
{
|
||||
$bAdded = true;
|
||||
$this->Logger()->Write('Check "'.$sLine.'" with wildcard: OK ('.$sEmail.' > '.$sEmail.'@'.$sLine.')',
|
||||
\MailSo\Log\Enumerations\Type::INFO, 'LOGIN');
|
||||
|
||||
$sEmail = $sEmail.'@'.$sLine;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->Logger()->Write('Check "'.$sLine.'" with wildcard: NO', \MailSo\Log\Enumerations\Type::INFO, 'LOGIN');
|
||||
}
|
||||
}
|
||||
|
||||
if (!$bAdded)
|
||||
{
|
||||
$this->Logger()->Write('Domain was not found!', \MailSo\Log\Enumerations\Type::INFO, 'LOGIN');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue