argument('file')); $s = $this->argument('ftn') ? Address::findFTN($this->argument('ftn'))->system : NULL; foreach ($f as $packet) { foreach (Packet::process($packet,$f->itemName(),$f->itemSize(),$s) as $msg) { // @todo Quick check that the packet should be processed by us. // @todo validate that the packet's zone is in the domain. $this->info(sprintf('Processing message from [%s] with msgid [%s] in (%s)',$msg->fboss,$msg->msgid,$f->pktName())); // Dispatch job. Job::dispatchSync($msg,$f->pktName(),$this->option('nobot')); } } } }