From 396614afcca6a54cfab1366c7f5318649536d772 Mon Sep 17 00:00:00 2001 From: Deon George Date: Tue, 21 May 2024 22:46:53 +1000 Subject: [PATCH] Fix processing echomail and when mail crc is calculated as it was decompressing the CompressedString --- app/Classes/FTN/Message.php | 3 +-- app/Classes/FTN/Process.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Classes/FTN/Message.php b/app/Classes/FTN/Message.php index 4886307..8854464 100644 --- a/app/Classes/FTN/Message.php +++ b/app/Classes/FTN/Message.php @@ -240,8 +240,6 @@ class Message extends FTNBase $o->mo->flags = $o->header['flags']; $o->mo->cost = $o->header['cost']; - $o->mo->msg_crc = md5($o->mo->msg_src); - if ($o->fftn) $o->mo->fftn_id = $o->fftn->id; else @@ -699,6 +697,7 @@ class Message extends FTNBase // Process the message content if ($content=substr($message,$ptr_start,$ptr_end-$ptr_start)) { $o->msg_src = $content; + $o->msg_crc = md5($content); $ptr_content_start = 0; // See if we have a tagline diff --git a/app/Classes/FTN/Process.php b/app/Classes/FTN/Process.php index 5fc1669..a13e5c4 100644 --- a/app/Classes/FTN/Process.php +++ b/app/Classes/FTN/Process.php @@ -11,7 +11,7 @@ abstract class Process { public static function canProcess(Echoarea $eao): bool { - return $eao->automsgs; + return $eao->automsgs ? TRUE : FALSE; } /**