Add packet name for incoming netmails, dont send back messages to sender for areafix messages

This commit is contained in:
Deon George
2023-01-24 22:37:41 +11:00
parent bc19f9aa82
commit 63e3397aee
5 changed files with 70 additions and 17 deletions

View File

@@ -636,6 +636,7 @@ class Address extends Model
public function netmailWaiting(): Collection
{
return Netmail::whereIn('tftn_id',(($x=$this->children) ? $x->pluck('id') : collect())->push($this->id))
->where('local',FALSE)
->whereNull('sent_at')
->get();
}