İçeriğe geç
Tüm araçlar

copy_email

E-posta · macOS

Etki: yazma. Durum: koşullu kullanılabilir.

“Koşullu kullanılabilirlik”, aracın sürüme, platforma, izinlere, hesaba veya yapılandırmaya bağlı olabileceğini belirtir. Her kurulumda etkin olduğu anlamına gelmez.

macOS

Amaç

Bir e-postayı Mac'in Apple Mail (Mail.app) uygulamasındaki başka bir posta kutusuna kopyalar; özgün ileti olduğu yerde kalır. BAŞKA bir hesabın posta kutusuna kopyalamak için target_account= iletin (o hesabın adı veya adresi, list_email_accounts'tan): hedef klasör o zaman yalnızca o hesapta aranır, iç içe klasörler dahil, iletinin kendi hesabında aynı adlı bir klasör olsa bile. Var olmayan bir hedef, görülen posta kutularıyla birlikte reddedilir.

Zorunlu girdiler

Girdi adları aracın istediği biçimde aynen korunur. İngilizce kanonik teknik tanımlar aşağıdaki açılır şemadadır.

İzinler ve onay

Şema açık bir onay parametresi bildirir. Önizlemeyi inceleyin ve gerçek işlemi platform sözleşmesine göre yetkilendirin.

İngilizce kanonik teknik şema — 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"
}

Belge örneği

copy_email için örnek belge. Bu örneği çalıştırmayın. Gösterilen bağımsız değişkenler kurgusal bir veri kümesine aittir; gerçek bir çağrıdan önce gerçek tanıtıcıları bulun ve izin alın.

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