📅  最后修改于: 2022-03-11 14:54:20.096000             🧑  作者: Mango
$oMessage->setFlag(['Seen', 'Spam']);
$oMessage->unsetFlag('Spam');
// Mark all messages as "read" while fetching:
$aMessage = $oFolder->query()->text('Hello world')->markAsRead()->get();
// Don't mark all messages as "read" while fetching:
$aMessage = $oFolder->query()->text('Hello world')->leaveUnread()->get();