{
  "additionalProperties": false,
  "properties": {
    "afterHandling": {
      "additionalProperties": false,
      "properties": {
        "folder": {
          "maxLength": 255,
          "type": "string",
          "x-lumen-title": {
            "en": "Move to folder",
            "he": "להעביר לתיקייה"
          },
          "x-lumen-widget": "mailbox-folder"
        },
        "mode": {
          "default": "markRead",
          "enum": [
            "markRead",
            "moveTo",
            "leave"
          ],
          "type": "string",
          "x-lumen-title": {
            "en": "Then",
            "he": "אחר כך"
          },
          "x-lumen-widget": "segmented"
        }
      },
      "type": "object",
      "x-lumen-title": {
        "en": "After the flow takes a mail",
        "he": "אחרי שהתהליך לקח מייל"
      }
    },
    "attachments": {
      "enum": [
        "separate",
        "together"
      ],
      "type": "string",
      "x-lumen-description": {
        "en": "Each attachment separately: every file goes through the flow on its own, with the email's sender, subject and body, so reply and forward steps answer once per file. The whole email as one: all the files travel together as one document. A trigger saved before this setting existed works as the whole email as one.",
        "he": "כל קובץ מצורף בנפרד: כל קובץ עובר בתהליך לבד, עם השולח, הנושא והגוף של המייל, ולכן צעדי מענה והעברה עונים פעם אחת לכל קובץ. המייל כולו כאחד: כל הקבצים עוברים יחד כמסמך אחד. טריגר שנשמר לפני שההגדרה הזו נוספה עובד כמייל כולו כאחד."
      },
      "x-lumen-initial": "separate",
      "x-lumen-options": {
        "separate": {
          "en": "Each attachment separately",
          "he": "כל קובץ מצורף בנפרד"
        },
        "together": {
          "en": "The whole email as one",
          "he": "המייל כולו כאחד"
        }
      },
      "x-lumen-title": {
        "en": "Attachments",
        "he": "קבצים מצורפים"
      },
      "x-lumen-widget": "segmented"
    },
    "filters": {
      "additionalProperties": false,
      "properties": {
        "fromContains": {
          "maxLength": 200,
          "type": "string",
          "x-lumen-title": {
            "en": "Sender contains",
            "he": "השולח מכיל"
          }
        },
        "subjectContains": {
          "maxLength": 200,
          "type": "string",
          "x-lumen-title": {
            "en": "Subject contains",
            "he": "הנושא מכיל"
          }
        }
      },
      "type": "object",
      "x-lumen-title": {
        "en": "Only mail that matches",
        "he": "רק מיילים שמתאימים"
      }
    },
    "folder": {
      "default": "INBOX",
      "maxLength": 255,
      "type": "string",
      "x-lumen-title": {
        "en": "Folder",
        "he": "תיקייה"
      },
      "x-lumen-widget": "mailbox-folder"
    },
    "importExisting": {
      "default": 0,
      "maximum": 500,
      "minimum": 0,
      "type": "integer",
      "x-lumen-description": {
        "en": "Takes the newest N mails in the folder, before the filters, once when the folder is first read. More than 50 are worked off over several checks.",
        "he": "לוקח את N המיילים החדשים ביותר בתיקייה, לפני המסננים, פעם אחת כשהתיקייה נקראת לראשונה. יותר מ-50 מטופלים לאורך כמה בדיקות."
      },
      "x-lumen-title": {
        "en": "Import existing mails (newest)",
        "he": "לייבא מיילים קיימים (החדשים ביותר)"
      }
    },
    "includeAttachments": {
      "default": true,
      "type": "boolean",
      "x-lumen-title": {
        "en": "Include attachments",
        "he": "לצרף קבצים מצורפים"
      }
    },
    "includeInline": {
      "default": false,
      "type": "boolean",
      "x-lumen-title": {
        "en": "Include images in the email body",
        "he": "לכלול תמונות מגוף המייל"
      }
    },
    "maxSizeMB": {
      "default": 25,
      "maximum": 40,
      "minimum": 1,
      "type": "integer",
      "x-lumen-title": {
        "en": "Largest mail (MB)",
        "he": "המייל הגדול ביותר (MB)"
      }
    },
    "pollMinutes": {
      "default": 5,
      "maximum": 60,
      "minimum": 1,
      "type": "integer",
      "x-lumen-title": {
        "en": "Check every (minutes)",
        "he": "בדיקה כל (דקות)"
      }
    },
    "requireAttachment": {
      "default": false,
      "type": "boolean",
      "x-lumen-title": {
        "en": "Only emails with an attachment",
        "he": "רק מיילים עם קובץ מצורף"
      }
    }
  },
  "type": "object"
}
