Full implemantation
This commit is contained in:
@ -53,9 +53,10 @@ class GrabAttachments extends Command
|
||||
$messages = $this->getMessages();
|
||||
$io->text('Found ' . count($messages) . ' messages.');
|
||||
$io->section('Grabbing Attachments');
|
||||
foreach ($messages as $message) {
|
||||
$attachments = $this->grabAttachments($message);
|
||||
$io->text("Found {$attachments} attachments for message UID:{$message}.");
|
||||
foreach ($messages as $job) {
|
||||
$message = $job->message;
|
||||
$attachments = $this->grabAttachments($message->uid);
|
||||
$io->text("Found {$attachments} attachments for message UID:{$message->uid}.");
|
||||
}
|
||||
$io->success('Done.');
|
||||
|
||||
|
Reference in New Issue
Block a user