...
|
...
|
@@ -233,6 +233,7 @@ class Msg extends Request{ |
|
|
* @time 2024/9/24 9:51
|
|
|
*/
|
|
|
public function setFlags(string $flag, bool $unset = false):bool {
|
|
|
$this->folder->exec();
|
|
|
// FLAGS.SILENT 和 FLAGS 前者不返回新的标签 后者返回新的标签列表
|
|
|
// UID STORE 1 +FLAGS (\Seen) 这个是添加为已读
|
|
|
// UID STORE 1 -FLAGS (\Seen) 这个是标记为未读
|
...
|
...
|
@@ -371,6 +372,7 @@ class Msg extends Request{ |
|
|
* @time 2024/9/24 10:47
|
|
|
*/
|
|
|
public function move(string $folder, bool $utf7 = true):bool {
|
|
|
$this->folder->exec();
|
|
|
if(!$utf7) $folder = mb_iconv($folder,"UTF7-IMAP","UTF-8");
|
|
|
// "UID MOVE {$uids} \"{$folder}\""
|
|
|
$this->cmd('%s MOVE %s "%s"',
|
...
|
...
|
@@ -391,6 +393,7 @@ class Msg extends Request{ |
|
|
* @time 2024/9/24 10:51
|
|
|
*/
|
|
|
public function copy(string $folder, bool $utf7 = true):bool {
|
|
|
$this->folder->exec();
|
|
|
if(!$utf7) $folder = mb_iconv($folder,"UTF7-IMAP","UTF-8");
|
|
|
// "UID COPY {$uids} \"{$folder}\""
|
|
|
$this->cmd('%s COPY %s "%s"',
|
...
|
...
|
|