generated from Nodarx/template
29 lines
665 B
PHP
29 lines
665 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace KTXM\ProviderImapMail\Service\Remote\Command;
|
|
|
|
use Gricob\IMAP\Protocol\Command\Command;
|
|
use Gricob\IMAP\Protocol\Command\Argument\QuotedString;
|
|
|
|
/**
|
|
* Raw IMAP DELETE command for a mailbox.
|
|
*
|
|
* gricob does not expose mailbox deletion; this thin wrapper fills the gap.
|
|
*
|
|
* Example: DELETE "INBOX.Trash"
|
|
*/
|
|
final readonly class DeleteCommand extends Command
|
|
{
|
|
public function __construct(string $mailbox)
|
|
{
|
|
parent::__construct('DELETE', new QuotedString($mailbox));
|
|
}
|
|
}
|