generated from Nodarx/template
feat: initial version
Signed-off-by: Sebastian Krupinski <root@LAPTOP-7DVOR6NC>
This commit was merged in pull request #1.
This commit is contained in:
28
lib/Service/Remote/Command/RenameCommand.php
Normal file
28
lib/Service/Remote/Command/RenameCommand.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?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 RENAME command.
|
||||
*
|
||||
* gricob does not expose mailbox renaming; this thin wrapper fills the gap.
|
||||
*
|
||||
* Example: RENAME "OldName" "NewName"
|
||||
*/
|
||||
final readonly class RenameCommand extends Command
|
||||
{
|
||||
public function __construct(string $oldName, string $newName)
|
||||
{
|
||||
parent::__construct('RENAME', new QuotedString($oldName), new QuotedString($newName));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user