Naar de inhoud
Alle hulpmiddelen

flag_email

E-mail · macOS

Effect: schrijven. Status: voorwaardelijk beschikbaar.

‘Voorwaardelijke beschikbaarheid’ betekent dat het hulpmiddel kan afhangen van versie, platform, machtigingen, account of configuratie. Het is niet in elke installatie actief.

macOS

Doel

Markeert een e-mail in Apple Mail (Mail.app) op de Mac met een kleur, of wist de markering. color is een van red, orange, yellow, green, blue, purple, gray, of none om te wissen (standaard red). Het antwoord is wat Mail na de wijziging teruglees. Geef account= en mailbox= mee (uit list_emails/search_emails) zodat het bericht zonder scannen wordt gevonden. Zonder confirm geeft het een voorbeeld terug en wijzigt het niets; geef confirm=true mee om te markeren.

Vereiste invoer

De namen blijven exact zoals het hulpmiddel ze vereist. De canonieke technische definities in het Engels staan in het uitklapbare schema hieronder.

Machtigingen en bevestiging

Het schema bevat een expliciete bevestigingsparameter. Controleer het voorbeeld en autoriseer de echte bewerking volgens het platformcontract.

Canoniek technisch schema in het Engels — 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"
}

Documentatievoorbeeld

Documentatievoorbeeld voor flag_email. Voer dit voorbeeld niet uit. De getoonde argumenten verwijzen naar fictieve gegevens; zoek vóór een echte aanroep de werkelijke identificatoren op en vraag toestemming.

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