本文へスキップ
すべてのツール

copy_email

メール · macOS

効果: 書き込み. 状態: 条件付き提供.

「条件付き提供」は、バージョン、プラットフォーム、権限、アカウント、設定に依存する可能性を示し、すべての環境で有効という意味ではありません。

macOS

目的

メールを Mac の Apple Mail(Mail.app)の別のメールボックスにコピーします。元のメールはそのまま残ります。confirm=true が必要です。copied が true になるのは、コピー先のメールボックスでそのメッセージのコピーが 1 つ増えたことを確認できた場合だけで、それ以外では確認できていない旨が応答に示されます。別のアカウントのメールボックスにコピーするには、account を指定せず(account= を指定すると、そのアカウントの中だけでコピー先を探します)、そのアカウントにしかないフォルダ名を使ってください。存在しないコピー先は、確認できたメールボックスの一覧とともに拒否されます。

必須入力

入力名はツールが要求する正確な形式のままです。英語の正規技術定義は下の展開可能なスキーマにあります。

権限と確認

スキーマには明示的な確認パラメータがあります。プレビューを確認し、プラットフォーム契約に従って実操作を承認してください。

英語の正規技術スキーマ — 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 copy the message. Defaults to false.",
      "type": "boolean"
    },
    "mailbox": {
      "description": "Folder the message is in. 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"
}

ドキュメント例

copy_email のドキュメント例です。この例は実行しないでください。表示される引数は架空のデータセットに属します。実際に呼び出す前に実在する識別子を確認し、承認を得てください。

{
  "account": "Demo iCloud",
  "confirm": false,
  "mailbox": "INBOX",
  "message_id": "demo-message-001",
  "target_mailbox": "Projects"
}