본문으로 건너뛰기
모든 도구

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