198 lines
5.2 KiB
JSON
198 lines
5.2 KiB
JSON
{
|
|
"fields": {
|
|
"name": {
|
|
"type": "varchar",
|
|
"required": true,
|
|
"pattern": "$noBadCharacters"
|
|
},
|
|
"emailAddress": {
|
|
"type": "varchar",
|
|
"required": true,
|
|
"maxLength": 100,
|
|
"tooltip": true,
|
|
"view": "views/email-account/fields/email-address"
|
|
},
|
|
"status": {
|
|
"type": "enum",
|
|
"options": ["Active", "Inactive"],
|
|
"style": {
|
|
"Inactive": "info"
|
|
},
|
|
"default": "Active"
|
|
},
|
|
"host": {
|
|
"type": "varchar",
|
|
"massUpdateDisabled": true
|
|
},
|
|
"port": {
|
|
"type": "int",
|
|
"min": 0,
|
|
"max": 65535,
|
|
"default": 993,
|
|
"disableFormatting": true,
|
|
"massUpdateDisabled": true
|
|
},
|
|
"security": {
|
|
"type": "enum",
|
|
"default": "SSL",
|
|
"options": ["", "SSL", "TLS"]
|
|
},
|
|
"username": {
|
|
"type": "varchar"
|
|
},
|
|
"password": {
|
|
"type": "password"
|
|
},
|
|
"monitoredFolders": {
|
|
"type": "array",
|
|
"default": ["INBOX"],
|
|
"view": "views/email-account/fields/folders",
|
|
"displayAsList": true,
|
|
"noEmptyString": true,
|
|
"duplicateIgnore": true,
|
|
"tooltip": true,
|
|
"fullNameAdditionalAttributeList": ["folderMap"]
|
|
},
|
|
"sentFolder": {
|
|
"type": "varchar",
|
|
"view": "views/email-account/fields/folder",
|
|
"duplicateIgnore": true
|
|
},
|
|
"folderMap": {
|
|
"type": "jsonObject",
|
|
"validatorClassNameList": [
|
|
"Espo\\Classes\\FieldValidators\\EmailAccount\\FolderMap\\Valid"
|
|
]
|
|
},
|
|
"storeSentEmails": {
|
|
"type": "bool",
|
|
"tooltip": true
|
|
},
|
|
"keepFetchedEmailsUnread": {
|
|
"type": "bool"
|
|
},
|
|
"fetchSince": {
|
|
"type": "date",
|
|
"validatorClassNameList": [
|
|
"Espo\\Classes\\FieldValidators\\InboundEmail\\FetchSince\\Required"
|
|
],
|
|
"forceValidation": true
|
|
},
|
|
"fetchData": {
|
|
"type": "jsonObject",
|
|
"readOnly": true,
|
|
"duplicateIgnore": true
|
|
},
|
|
"emailFolder": {
|
|
"type": "link",
|
|
"view": "views/email-account/fields/email-folder",
|
|
"duplicateIgnore": true
|
|
},
|
|
"createdAt": {
|
|
"type": "datetime",
|
|
"readOnly": true
|
|
},
|
|
"modifiedAt": {
|
|
"type": "datetime",
|
|
"readOnly": true
|
|
},
|
|
"assignedUser": {
|
|
"type": "link",
|
|
"required": true,
|
|
"view": "views/fields/assigned-user"
|
|
},
|
|
"connectedAt": {
|
|
"type": "datetime",
|
|
"readOnly": true
|
|
},
|
|
"useImap": {
|
|
"type": "bool",
|
|
"default": true
|
|
},
|
|
"useSmtp": {
|
|
"type": "bool",
|
|
"tooltip": true
|
|
},
|
|
"smtpHost": {
|
|
"type": "varchar",
|
|
"massUpdateDisabled": true
|
|
},
|
|
"smtpPort": {
|
|
"type": "int",
|
|
"min": 0,
|
|
"max": 65535,
|
|
"default": 587,
|
|
"disableFormatting": true,
|
|
"massUpdateDisabled": true
|
|
},
|
|
"smtpAuth": {
|
|
"type": "bool",
|
|
"default": true
|
|
},
|
|
"smtpSecurity": {
|
|
"type": "enum",
|
|
"default": "TLS",
|
|
"options": ["", "SSL", "TLS"]
|
|
},
|
|
"smtpUsername": {
|
|
"type": "varchar"
|
|
},
|
|
"smtpPassword": {
|
|
"type": "password"
|
|
},
|
|
"smtpAuthMechanism": {
|
|
"type": "enum",
|
|
"options": ["login", "crammd5", "plain"],
|
|
"default": "login"
|
|
},
|
|
"imapHandler": {
|
|
"type": "varchar",
|
|
"readOnly": true
|
|
},
|
|
"smtpHandler": {
|
|
"type": "varchar",
|
|
"readOnly": true
|
|
},
|
|
"createdBy": {
|
|
"type": "link",
|
|
"readOnly": true
|
|
},
|
|
"modifiedBy": {
|
|
"type": "link",
|
|
"readOnly": true
|
|
}
|
|
},
|
|
"links": {
|
|
"assignedUser": {
|
|
"type": "belongsTo",
|
|
"entity": "User"
|
|
},
|
|
"createdBy": {
|
|
"type": "belongsTo",
|
|
"entity": "User"
|
|
},
|
|
"modifiedBy": {
|
|
"type": "belongsTo",
|
|
"entity": "User"
|
|
},
|
|
"filters": {
|
|
"type": "hasChildren",
|
|
"foreign": "parent",
|
|
"entity": "EmailFilter"
|
|
},
|
|
"emails": {
|
|
"type": "hasMany",
|
|
"entity": "Email",
|
|
"foreign": "emailAccounts"
|
|
},
|
|
"emailFolder": {
|
|
"type": "belongsTo",
|
|
"entity": "EmailFolder"
|
|
}
|
|
},
|
|
"collection": {
|
|
"orderBy": "name",
|
|
"order": "asc"
|
|
}
|
|
}
|