Page MenuHomePhorge

ListCommand.php
No OneTemporary

Authored By
Unknown
Size
910 B
Referenced Files
None
Subscribers
None

ListCommand.php

<?php
namespace App\Console\Commands\Imap;
use App\Console\Command;
use App\Support\Facades\IMAP;
class ListCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'imap:list {user} {--groupware}';
/**
* The console command description.
*
* @var string
*/
protected $description = "List IMAP Folders";
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$user = $this->argument('user');
if ($this->option("groupware")) {
foreach (IMAP::listGroupwareMailboxes($user) as $mailbox) {
$this->info("{$mailbox}");
}
} else {
foreach (IMAP::listMailboxes($user) as $mailbox) {
$this->info("{$mailbox}");
}
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Apr 24, 2:00 PM (6 d, 8 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18740454
Default Alt Text
ListCommand.php (910 B)

Event Timeline