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"
}