Hosted changes

This commit is contained in:
David Bomba 2024-08-29 16:57:16 +10:00
parent 0b4eaf9d4f
commit 918258948b
2 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ use Illuminate\Http\UploadedFile;
use Illuminate\Support\Carbon; use Illuminate\Support\Carbon;
/** /**
* EmailObject. * InboundMail.
*/ */
class InboundMail class InboundMail
{ {

View File

@ -38,9 +38,9 @@ class InboundMailEngine
public function __construct() public function __construct()
{ {
$this->globalBlacklist = explode(",", config('ninja.inbound_mailbox.global_inbound_blocklist')); // only for global validation, not for allowing to send something into the company, should be used to disabled blocking for mass-senders
$this->globalWhitelist = explode(",", config('ninja.inbound_mailbox.global_inbound_whitelist')); // only for global validation, not for allowing to send something into the company, should be used to disabled blocking for mass-senders $this->globalBlacklist = Ninja::isSelfHost() ? explode(",", config('ninja.inbound_mailbox.global_inbound_blocklist')) : [];
$this->globalWhitelist = Ninja::isSelfHost() ? explode(",", config('ninja.inbound_mailbox.global_inbound_whitelist')) : [];
} }
/** /**
* if there is not a company with an matching mailbox, we only do monitoring * if there is not a company with an matching mailbox, we only do monitoring