Move fido configuation items into fido namespace. If keeping packets move them into a date aligned subdir

This commit is contained in:
2023-09-22 14:45:44 +10:00
parent 22c8b3df74
commit 2ae24b9955
13 changed files with 97 additions and 26 deletions

View File

@@ -860,6 +860,8 @@ class Message extends FTNBase
$this->point['dst'] = $t;
// <SOH>Via <FTN Address> @YYYYMMDD.HHMMSS[.Precise][.Time Zone] <Program Name> <Version> [Serial Number]<CR>
// @todo The via line is still showing in the main message? https://clrghouz.bbs.dege.au/netmail/view/707
// @todo Need to make sure that the CRC doesnt include this
elseif ($t = $this->kludge('Via ',$kl))
$this->via->push($t);

View File

@@ -39,7 +39,7 @@ final class Item extends Receive
case 'stor_name':
return sprintf('%04X-%s',$this->ao->id,$this->recvas);
case 'rel_name':
return sprintf('%s/%s',config('app.fido'),$this->stor_name);
return sprintf('%s/%s',config('fido.dir'),$this->stor_name);
case 'full_name':
return Storage::disk(self::LOCATION)->path($this->rel_name);

View File

@@ -125,7 +125,7 @@ class Receive extends Base
case self::IS_PKT:
try {
// If packet is greater than a size, lets queue it
if ($this->receiving->size > config('app.queue_size',0)) {
if ($this->receiving->size > config('fido.queue_size',0)) {
Log::info(sprintf('%s:- Packet [%s] will be sent to the queue for processing because its [%d] size',self::LOGKEY,$this->receiving->full_name,$this->receiving->size));
PacketProcess::dispatch($this->receiving,$this->ao,$rcvd_time);