Add DBID back to messages, add path/seen-by to generated messages, other minor cosmetic fixes

This commit is contained in:
Deon George
2022-01-22 23:08:46 +11:00
parent fe9fbb88b0
commit efa7195633
8 changed files with 137 additions and 11 deletions

View File

@@ -42,7 +42,7 @@ class Message extends FTNBase
'chrs' => 'CHRS: ',
'charset' => 'CHARSET: ',
'codepage' => 'CODEPAGE: ',
'mid' => 'MID: ',
'dbid' => 'DBID: ',
'pid' => 'PID: ',
'replyid' => 'REPLY: ',
'tid' => 'TID: ',
@@ -423,6 +423,8 @@ class Message extends FTNBase
case 'tagline':
case 'tearline':
case 'origin':
case 'seenby':
case 'path':
case 'via':
$this->{$key} = $value;
break;
@@ -511,7 +513,9 @@ class Message extends FTNBase
$return .= sprintf("\01Via %s\r",$v);
} else {
// @todo Add echomail SEEN-BY and PATH
// Seenby & PATH - FSC-0068
$return .= sprintf("SEEN-BY: %s\r",wordwrap(optimize_path($this->seenby)->join(' '),70,"\rSEEN-BY: "));
$return .= sprintf("\01PATH: %s\r",wordwrap(optimize_path($this->path)->join(' '),70,"\rPATH: "));
}
$return .= "\00";

View File

@@ -26,7 +26,6 @@ final class Test extends Process
private const testing = ['test','testing'];
// @todo add path and other kludges
public static function handle(Message $msg): bool
{
if ((strtolower($msg->user_to) !== 'all') || ! in_array(strtolower($msg->subject),self::testing))