From 3b99c409e040b62488bd56034db30ea760f89973 Mon Sep 17 00:00:00 2001 From: Deon George Date: Wed, 15 Nov 2023 11:19:14 +1100 Subject: [PATCH] When a netmail has a msgid, dont overwrite it --- app/Models/Netmail.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Models/Netmail.php b/app/Models/Netmail.php index fbff429..8cb519c 100644 --- a/app/Models/Netmail.php +++ b/app/Models/Netmail.php @@ -191,7 +191,10 @@ final class Netmail extends Model implements Packet $o->intl = sprintf('%s %s',$this->tftn->ftn3d,$this->fftn->ftn3d); $o->flags = $this->flags; - $o->msgid = sprintf('%s %08x',$this->fftn->ftn3d,crc32($this->id)); + $o->msgid = $this->msgid + ? $this->msgid + : sprintf('%s %08x',$this->fftn->ftn4d,timew($this->datetime)); + if ($this->replyid) $o->replyid = $this->replyid;