flag_email
メール · macOS
効果: 書き込み. 状態: 条件付き提供.
「条件付き提供」は、バージョン、プラットフォーム、権限、アカウント、設定に依存する可能性を示し、すべての環境で有効という意味ではありません。
macOS
目的
Mac の Apple Mail(Mail.app)のメールに色付きのフラグを付けるか、フラグを解除します。color は red、orange、yellow、green、blue、purple、gray のいずれか、または解除する none です(既定は red)。応答は、変更後に Mail が読み返した内容です。スキャンせずにメッセージを見つけられるよう、account= と mailbox=(list_emails/search_emails から取得)を渡してください。confirm なしで呼び出すとプレビューを返し、何も変更しません。confirm=true を渡すとフラグを付けます。
必須入力
message_id
入力名はツールが要求する正確な形式のままです。英語の正規技術定義は下の展開可能なスキーマにあります。
権限と確認
スキーマには明示的な確認パラメータがあります。プレビューを確認し、プラットフォーム契約に従って実操作を承認してください。
- このプラットフォームでは、ユーザーが許可したアプリ、アカウント、リソースだけを使用してください。接続と権限の要件については、このツールのプラットフォーム固有の説明を参照してください。このカタログは、追加の 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"
},
"color": {
"description": "red, orange, yellow, green, blue, purple, gray, or none to clear the flag. Default red.",
"type": "string"
},
"confirm": {
"default": "false",
"description": "Set to true to actually flag 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"
}
},
"required": [
"message_id"
],
"type": "object"
}ドキュメント例
flag_email のドキュメント例です。この例は実行しないでください。表示される引数は架空のデータセットに属します。実際に呼び出す前に実在する識別子を確認し、承認を得てください。
{
"account": "Demo iCloud",
"color": "orange",
"confirm": false,
"mailbox": "INBOX",
"message_id": "demo-message-001"
}