move_email
メール · macOS
効果: 書き込み. 状態: 条件付き提供.
「条件付き提供」は、バージョン、プラットフォーム、権限、アカウント、設定に依存する可能性を示し、すべての環境で有効という意味ではありません。
macOS
目的
メールを別のメールボックスに移動します(入れ子になった移動先フォルダは名前で検索されます)。すべてのアカウントをスキャンせず 1 つのアカウントでメッセージを検索できるよう、account=(list_emails/search_emails が返す値)を渡してください。渡さないと、複数アカウントの Mac では遅くなり、一括移動でタイムアウトすることがあります。メッセージがあるフォルダがわかっている場合は、mailbox=(一覧の `mailbox` フィールド)も渡すと、そのフォルダを先に検索します。Exchange アカウントでは、Mail は移動をサーバーに確認できないため、moved=false と status server_unconfirmed で応答します。そのメールボックスには m365_move_email を使ってください。
必須入力
message_idtarget_mailbox
入力名はツールが要求する正確な形式のままです。英語の正規技術定義は下の展開可能なスキーマにあります。
権限と確認
スキーマには明示的な確認パラメータがあります。プレビューを確認し、プラットフォーム契約に従って実操作を承認してください。
- このプラットフォームでは、ユーザーが許可したアプリ、アカウント、リソースだけを使用してください。接続と権限の要件については、このツールのプラットフォーム固有の説明を参照してください。このカタログは、追加の OAuth スコープや OS 権限があるとは主張しません。
英語の正規技術スキーマ — 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"
}