diff --git a/app/Classes/FTN/Tic.php b/app/Classes/FTN/Tic.php index 3b110e2..f09de83 100644 --- a/app/Classes/FTN/Tic.php +++ b/app/Classes/FTN/Tic.php @@ -219,6 +219,8 @@ class Tic extends FTNBase case 'from': if (($ao=Address::findFTN($m[2])) && ((! $aid) || ($ao->zone->domain_id === Address::findOrFail(hexdec($aid))->zone->domain_id))) $this->file->fftn_id = $ao->id; + elseif ($aid && ($x=Address::findOrFail(hexdec($aid))) && ($y=$x->system->akas->search(fn($item)=>str_starts_with($item->ftn,$m[2])) !== FALSE)) + $this->file->fftn_id = $x->system->akas->get($y)->id; else throw new ModelNotFoundException(sprintf('FTN Address [%s] not found or sender mismatch',$m[2]));