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

move_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ı başka bir posta kutusuna taşır (iç içe hedef klasörler ada göre bulunur). İleti aramasının tüm hesapları taramak yerine tek hesaba yönelmesi için account= (list_emails/search_emails sonucundan) iletin; belirtilmezse çok hesaplı Mac'ler yavaştır ve toplu taşımalarda zaman aşımına uğrayabilir. İletinin bulunduğu klasörü biliyorsanız aramanın önce oraya bakması için mailbox= (listelemedeki `mailbox` alanı) da iletin. Bir Exchange hesabında Mail, taşımayı sunucuyla doğrulayamaz, bu yüzden moved=false ve server_unconfirmed durumuyla yanıt verir: o posta kutusu için m365_move_email kullanın.

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": "Set to true to actually move the message. Defaults to false.",
      "type": "boolean"
    },
    "mailbox": {
      "description": "Folder the message is in TODAY, before the move. 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"
    },
    "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

move_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.

{
  "confirm": false,
  "message_id": "demo-message-001",
  "target_mailbox": "Archive"
}