mark_email_read
电子邮件 · macOS
效果: 写入. 状态: 受限可用.
“受限可用”表示工具可能取决于版本、平台、权限、账户或配置,并不表示它在所有安装中都已启用。
macOS
用途
当用户想把 Mac 上 Apple Mail(Mail.app)中的邮件标记为已读,或用 unread=true 标记为未读时使用:用于记下哪些已处理,或稍后再回到某封邮件。用 message_id(一封)或 message_ids(最多 20 封)指定邮件,来自 list_emails、search_emails 或 read_email,并传入 account=,以便在正确的账户中找到它们。只有在再次读取显示新状态之后,才算标记成功。不会发送、移动或删除任何内容,因此无需确认。对于 Microsoft 365 账户的邮件,请使用 m365_mark_email_read。
必填输入
此平台的架构未声明必填输入,但仍可能存在可选选择器或运行时要求。
权限与确认
架构未声明明确的确认参数。这并不代表可以未经许可操作;请检查效果并取得授权。
- 仅使用用户在此平台上授权的应用、账户和资源。请查阅此工具针对平台的说明,以了解其连接和权限要求;本目录不声称需要额外的 OAuth 范围或操作系统授权。
英文规范技术架构 — macOS
{
"properties": {
"account": {
"description": "Mail.app account the messages live in (returned alongside the id).",
"type": "string"
},
"mailbox": {
"description": "Folder the messages are in. Passing it skips searching the other folders.",
"type": "string"
},
"message_id": {
"description": "The ID of one message to mark.",
"type": "string"
},
"message_ids": {
"description": "IDs of up to 20 messages to mark.",
"items": {
"type": "string"
},
"type": "array"
},
"unread": {
"description": "true marks them as unread (default false: as read).",
"type": "boolean"
}
},
"type": "object"
}文档示例
mark_email_read 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。
{
"mailbox": "INBOX",
"message_id": "demo-message-1"
}