diff --git a/app/Console/Commands/Debug/PacketAddress.php b/app/Console/Commands/Debug/PacketAddress.php new file mode 100644 index 0000000..80a933b --- /dev/null +++ b/app/Console/Commands/Debug/PacketAddress.php @@ -0,0 +1,57 @@ +argument('ftn')); + + switch ($this->argument('type')) { + case 'echomail': + $o = new Echomail; + break; + + case 'netmail': + $o = new Netmail; + break; + + default: + $this->error('Unknown type: '.$this->argument('type')); + exit(1); + } + + $o = $o->where('id',$this->argument('dbid'))->get(); + + dd(hex_dump($ao->getPacket($o))); + } +} \ No newline at end of file