Fixed checking for RESCAN kludge

This commit is contained in:
Deon George 2024-05-21 21:29:21 +10:00
parent 752462d20f
commit 8df6384736

View File

@ -427,7 +427,7 @@ abstract class Packet extends FTNBase implements \Iterator, \Countable
if ($msg->errors->has('invalid-zone')) {
Log::alert(sprintf('%s:! Message [%s] is from an invalid zone [%s], packet is from [%s] - ignoring it',self::LOGKEY,$msg->msgid,$msg->fftn->zone->zone_id,$this->fftn->zone->zone_id));
if (! $msg->rescanned->count())
if (! $msg->kludges->get('RESCANNED'))
Notification::route('netmail',$this->fftn)->notify(new EchomailBadAddress($msg));
return;