Add subject to encoding, some packet fixes missed in previous commit
This commit is contained in:
@@ -47,15 +47,16 @@ class PacketInfo extends Command
|
||||
$this->info(sprintf('Capabilities: %x',$pkt->capability));
|
||||
$this->info(sprintf('Has Errors: %s',$pkt->errors->count() ? 'YES' : 'No'));
|
||||
|
||||
foreach ($pkt->messages as $msg) {
|
||||
foreach ($pkt as $msg) {
|
||||
$this->warn(sprintf('- Date: %s',$msg->date));
|
||||
$this->warn(sprintf(' - FLAGS: %s',$msg->flags()->filter()->keys()->join(', ')));
|
||||
$this->warn(sprintf(' - From: %s (%s)',$msg->user_from,$msg->fftn));
|
||||
$this->warn(sprintf(' - To: %s (%s)',$msg->user_to,$msg->tftn));
|
||||
$this->warn(sprintf(' - Subject: %s',$msg->subject));
|
||||
|
||||
foreach ($msg->errors->errors()->all() as $error)
|
||||
$this->line(' - '.$error);
|
||||
if ($msg->errors)
|
||||
foreach ($msg->errors->errors()->all() as $error)
|
||||
$this->line(' - '.$error);
|
||||
}
|
||||
|
||||
foreach ($pkt->errors as $msg) {
|
||||
|
Reference in New Issue
Block a user