Предметные инструменты · mail

Операции модуля mail · Изменение · mail_own_mailbox_update

mail_site_mail_m116_writeИзменение

Действия модуля mail.

Действия

В tools/call передайте имя инструмента, значение action и параметры действия во вложенном объекте arguments.

Обновление настроек своего почтового ящика

mail_own_mailbox_update

Действия модуля mail.

mailbox_id
целое число · обязательный параметр
patch
объект · обязательный параметр
expected_revision
строка · обязательный параметр
request_id
строка · обязательный параметр
confirm
логическое значение · обязательный параметр
ack_native_effects
логическое значение · обязательный параметр
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "mailbox_id": {
      "type": "integer",
      "minimum": 1,
      "maximum": 2147483647
    },
    "patch": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "maxLength": 255,
          "minLength": 1
        },
        "sender_name": {
          "type": "string",
          "maxLength": 255
        },
        "description": {
          "type": "string",
          "maxLength": 8192
        },
        "active": {
          "type": "boolean"
        },
        "email": {
          "type": "string",
          "maxLength": 255
        },
        "server": {
          "type": "string",
          "maxLength": 255,
          "minLength": 1
        },
        "port": {
          "type": "integer",
          "minimum": 1,
          "maximum": 65535
        },
        "link": {
          "type": "string",
          "maxLength": 255
        },
        "charset": {
          "type": "string",
          "maxLength": 64,
          "minLength": 1
        },
        "use_md5": {
          "type": "boolean"
        },
        "delete_messages": {
          "type": "boolean"
        },
        "period_check": {
          "type": "integer",
          "minimum": 0,
          "maximum": 35791394
        },
        "max_message_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 2147483647
        },
        "max_message_bytes": {
          "type": "integer",
          "minimum": 0,
          "maximum": 2147483647
        },
        "max_keep_days": {
          "type": "integer",
          "minimum": 0,
          "maximum": 2147483647
        },
        "tls": {
          "type": "string",
          "enum": [
            "N",
            "Y",
            "S"
          ]
        },
        "domains": {
          "type": "string",
          "maxLength": 255
        },
        "relay": {
          "type": "boolean"
        },
        "auth_relay": {
          "type": "boolean"
        }
      },
      "minProperties": 1,
      "maxProperties": 19,
      "additionalProperties": false
    },
    "expected_revision": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "request_id": {
      "type": "string",
      "pattern": "^[a-f0-9]{32}$"
    },
    "confirm": {
      "type": "boolean"
    },
    "ack_native_effects": {
      "type": "boolean",
      "enum": [
        true
      ]
    }
  },
  "required": [
    "mailbox_id",
    "patch",
    "expected_revision",
    "request_id",
    "confirm",
    "ack_native_effects"
  ],
  "additionalProperties": false
}

Скачать исходное примечание