move_email
电子邮件 · macOS
效果: 写入. 状态: 受限可用.
“受限可用”表示工具可能取决于版本、平台、权限、账户或配置,并不表示它在所有安装中都已启用。
macOS
用途
将一封邮件移动到另一个邮箱(嵌套的目标文件夹按名称查找)。请传入 account=(由 list_emails/search_emails 返回),使邮件查找只针对一个账户,而不是扫描所有账户——不传时,多账户的 Mac 会很慢,批量移动还可能超时。如果知道邮件所在的文件夹,也请传入 mailbox=(列表中的 `mailbox` 字段),使查找先搜索该文件夹。对于 Exchange 账户,Mail 无法与服务器确认移动,因此会返回 moved=false 和状态 server_unconfirmed:请对该邮箱使用 m365_move_email。
必填输入
message_idtarget_mailbox
输入名称会严格保持工具要求的形式。下方可展开的架构中保留英文规范技术定义。
权限与确认
架构声明了明确的确认参数。请检查预览,并按此平台的契约授权实际操作。
- 仅使用用户在此平台上授权的应用、账户和资源。请查阅此工具针对平台的说明,以了解其连接和权限要求;本目录不声称需要额外的 OAuth 范围或操作系统授权。
英文规范技术架构 — macOS
{
"properties": {
"account": {
"description": "Mail.app account the message lives in (returned alongside the id). Pass it so the message is found in the right account.",
"type": "string"
},
"confirm": {
"default": "false",
"description": "Set to true to actually move the message. Defaults to false.",
"type": "boolean"
},
"mailbox": {
"description": "Folder the message is in TODAY, before the move. Passing it skips searching the other folders.",
"type": "string"
},
"message_id": {
"description": "The message id returned by list_emails or search_emails. Accepts the bare id or the <angle-bracketed> form.",
"type": "string"
},
"target_mailbox": {
"description": "Destination folder, by name (see list_email_folders). Nested folders are found by their own name, not by a path.",
"type": "string"
}
},
"required": [
"message_id",
"target_mailbox"
],
"type": "object"
}文档示例
move_email 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。
{
"confirm": false,
"message_id": "demo-message-001",
"target_mailbox": "Archive"
}