diff --git a/app/Console/Commands/PacketSystem.php b/app/Console/Commands/PacketSystem.php new file mode 100644 index 0000000..1878164 --- /dev/null +++ b/app/Console/Commands/PacketSystem.php @@ -0,0 +1,46 @@ +argument('sid')); + + foreach ($so->addresses as $ao) { + $pkt = $ao->getEchomail(FALSE); + $this->info(sprintf('System address [%s] has [%d] messages.',$ao->ftn,$pkt?->count())); + + if ($pkt) { + foreach ($pkt as $msg) + $this->warn(sprintf('- %s',$msg->msgid)); + } + } + } +} \ No newline at end of file