From 8616adb4373cf8ec13ef554fc86fd43ee2483204 Mon Sep 17 00:00:00 2001 From: paulwer Date: Wed, 26 Jun 2024 19:00:09 +0200 Subject: [PATCH] fixes --- app/Services/InboundMail/InboundMailEngine.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/Services/InboundMail/InboundMailEngine.php b/app/Services/InboundMail/InboundMailEngine.php index d9a6deb8423c..bd3b95d865d7 100644 --- a/app/Services/InboundMail/InboundMailEngine.php +++ b/app/Services/InboundMail/InboundMailEngine.php @@ -32,11 +32,14 @@ class InboundMailEngine use SerializesModels, MakesHash; use GeneratesCounter, SavesDocuments; - private ?bool $isUnknownRecipent = null; - private array $globalBlacklist = explode(",", config('global_inbound_blocklist')); - private array $globalWhitelist = explode(",", config('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 + private array $globalBlacklist; + private array $globalWhitelist; // only for global validation, not for allowing to send something into the company, should be used to disabled blocking for mass-senders public function __construct() { + + $this->globalBlacklist = explode(",", config('global_inbound_blocklist')); + $this->globalWhitelist = explode(",", config('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 + } /** * if there is not a company with an matching mailbox, we only do monitoring