...
|
...
|
@@ -184,20 +184,20 @@ class MessageItem { |
|
|
public function __call(string $name, array $arguments)
|
|
|
{
|
|
|
switch ($name){
|
|
|
case 'seen':{return $this->msg->uid($this->uid)->seen();} // 已读
|
|
|
case 'unseen':{return $this->msg->uid($this->uid)->unseen();} // 未读
|
|
|
case 'deleted':{return $this->msg->uid($this->uid)->deleted();}//删除
|
|
|
case 'undeleted':{return $this->msg->uid($this->uid)->undeleted();}//取消删除
|
|
|
case 'flagged':{return $this->msg->uid($this->uid)->flagged();}//星标
|
|
|
case 'unflagged':{return $this->msg->uid($this->uid)->unflagged();}//取消星标
|
|
|
case 'recent':{return $this->msg->uid($this->uid)->recent();}//最近
|
|
|
case 'unrecent':{return $this->msg->uid($this->uid)->unrecent();}// 取消最近
|
|
|
case 'answered':{return $this->msg->uid($this->uid)->answered();} // 已回复
|
|
|
case 'unanswered':{return $this->msg->uid($this->uid)->unanswered();}// 取消已回复
|
|
|
case 'draft':{return $this->msg->uid($this->uid)->draft();}// 草稿
|
|
|
case 'undraft':{return $this->msg->uid($this->uid)->undraft();}//取消草稿
|
|
|
case 'move':{return $this->msg->uid($this->uid)->move(...$arguments);}//移动当前邮件到指定目录
|
|
|
case 'copy':{return $this->msg->uid($this->uid)->copy(...$arguments);}//移动当前邮件到指定目录
|
|
|
case 'seen':{} // 已读
|
|
|
case 'unseen':{} // 未读
|
|
|
case 'deleted':{}//删除
|
|
|
case 'undeleted':{}//取消删除
|
|
|
case 'flagged':{}//星标
|
|
|
case 'unflagged':{}//取消星标
|
|
|
case 'recent':{}//最近
|
|
|
case 'unrecent':{}// 取消最近
|
|
|
case 'answered':{} // 已回复
|
|
|
case 'unanswered':{}// 取消已回复
|
|
|
case 'draft':{}// 草稿
|
|
|
case 'undraft':{}//取消草稿
|
|
|
case 'move':{}//移动当前邮件到指定目录
|
|
|
case 'copy':{return $this->msg->uid($this->uid)->{$name}(...$arguments);}//移动当前邮件到指定目录
|
|
|
default:{
|
|
|
throw new \Exception('未定义函数 '.$name);
|
|
|
}
|
...
|
...
|
|