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

copy_email

メール · macOS

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

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

macOS

目的

メールを Mac の Apple Mail(Mail.app)の別のメールボックスにコピーします。元のメールはそのまま残ります。別のアカウントのメールボックスにコピーするには、target_account=(そのアカウント名またはアドレス。list_email_accounts で取得)を渡してください。コピー先フォルダは、入れ子のフォルダも含めて、そのアカウントの中だけで探されます。メッセージ自身のアカウントに同名のフォルダがあっても同様です。存在しないコピー先は、確認できたメールボックスの一覧とともに拒否されます。

必須入力

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

権限と確認

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

英語の正規技術スキーマ — 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": "Ignored; kept for older clients.",
      "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, copied exactly. Never build one from the subject, sender or date. Accepts the bare id or the <angle-bracketed> form.",
      "type": "string"
    },
    "target_account": {
      "description": "Account to copy the message INTO (its name or address, from list_email_accounts). Omit it to copy within the message's own account.",
      "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"
}