Fix packet parsing for unknown zones, or zones that are not default
This commit is contained in:
@@ -442,7 +442,7 @@ class Packet extends FTNBase implements \Iterator, \Countable
|
||||
Log::info(sprintf('%s:- Message [%s] has errors',self::LOGKEY,$msg->msgid));
|
||||
|
||||
// If the from address doenst exist, we'll create a new entry
|
||||
if ($msg->errors->messages()->has('to')) {
|
||||
if ($msg->errors->messages()->has('to') && $msg->tzone) {
|
||||
$e = NULL;
|
||||
|
||||
try {
|
||||
@@ -484,7 +484,7 @@ class Packet extends FTNBase implements \Iterator, \Countable
|
||||
Log::alert(sprintf('%s: - To FTN is not defined, creating new entry for [%s] (%d)',self::LOGKEY,$msg->tboss,$ao->id));
|
||||
}
|
||||
|
||||
if ($msg->errors->messages()->has('from')) {
|
||||
if ($msg->errors->messages()->has('from') && $msg->tzone) {
|
||||
$e = NULL;
|
||||
|
||||
try {
|
||||
|
Reference in New Issue
Block a user