mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-25 07:16:21 +08:00
Resolve #793
This commit is contained in:
parent
af59dd3d0d
commit
daa1185459
1 changed files with 5 additions and 5 deletions
|
@ -216,7 +216,7 @@ trait Messages
|
||||||
* @throws \MailSo\Net\Exceptions\*
|
* @throws \MailSo\Net\Exceptions\*
|
||||||
* @throws \MailSo\Imap\Exceptions\*
|
* @throws \MailSo\Imap\Exceptions\*
|
||||||
*/
|
*/
|
||||||
public function MessageMove(string $sFromFolder, string $sToFolder, SequenceSet $oRange) : ResponseCollection
|
public function MessageMove(string $sFromFolder, string $sToFolder, SequenceSet $oRange) : void
|
||||||
{
|
{
|
||||||
if (!$sFromFolder || !$sToFolder || !\count($oRange)) {
|
if (!$sFromFolder || !$sToFolder || !\count($oRange)) {
|
||||||
$this->writeLogException(new \InvalidArgumentException, \LOG_ERR);
|
$this->writeLogException(new \InvalidArgumentException, \LOG_ERR);
|
||||||
|
@ -224,14 +224,14 @@ trait Messages
|
||||||
|
|
||||||
if ($this->hasCapability('MOVE')) {
|
if ($this->hasCapability('MOVE')) {
|
||||||
$this->FolderSelect($sFromFolder);
|
$this->FolderSelect($sFromFolder);
|
||||||
return $this->SendRequestGetResponse(
|
$this->SendRequestGetResponse(
|
||||||
$oRange->UID ? 'UID MOVE' : 'MOVE',
|
$oRange->UID ? 'UID MOVE' : 'MOVE',
|
||||||
array((string) $oRange, $this->EscapeFolderName($sToFolder))
|
array((string) $oRange, $this->EscapeFolderName($sToFolder))
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
$this->MessageCopy($sFromFolder, $sToFolder, $oRange);
|
||||||
|
$this->MessageDelete($sFromFolder, $oRange, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->MessageCopy($sFromFolder, $sToFolder, $oRange);
|
|
||||||
$this->MessageDelete($sFromFolder, $oRange, true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue