SM2Gen/json5/Mailstats.json5

232 lines
5.3 KiB
Plaintext

{
PackageName: 'Mailstats',
prefix: 'mst',
MenuHeading: 'Investigation',
MenuDescription: 'Mailstats',
MenuNavigation: '4000 700',
firstPanel: 'TABLE',
signalEvent: 'smeserver-mailstats-update',
html: [
{Name: 'Table',
route: 'TABLE',
Group1: 'class=inline-buttons',
Link1: {
Type: 'Link',
href: 'mailstatsd?trt=CONFIG',
title: 'Configure Mailstats'
},
Endgroup1: '',
SubHeader1: 'Table of email status',
Paragraph1: 'Descriptive paragraph',
Input1: {
Name: 'StatsDate',
Type: 'Select',
Label: 'Date for Stats display',
Value: '',
Options: [{'Value':'$c->get_StatsDate()',
'Text':'$c->get_StatsDate()'}]
},
Input2:{
Name:'StatsTable',
Type:'object',
url:'mailstats/$c->stash("url")'
}
},
{Name: 'Configuration',
route: 'CONFIG',
Input4:{
Name:'TextorHTML',
Type:'Select',
Label: 'Specify if you would like to receive email in text or HTML form',
Options: [
{
'Value': 'HTML',
'Text': 'HTML'
},
{
'Value': 'Text',
'Text': 'Text'
},
{
'Value': 'Both',
'Text': 'Both'
},
{
'Value': 'Neither',
'Text': 'Neither'
}
]
},
Group1:'class=emailwanted',
SubHeader:'Email details',
Input3:{
Name:'Email',
Type:'Email',
Label:'Email for stats'
},
Input5:{
Name:'EmailHost',
Label:'Host name for email server',
Type:'Text',
Value:'localhost'
},
Input6:{
Name:'EmailPort',
Label:'Port number for email server',
Type:'Number',
Value:'25'
},
Input7:{
Name:'EmailUser',
Type:'Text',
Label:'User name for email sending',
Value:'admin'
},
Input8:{
Name:'EmailPassword',
Type:'Password',
Label:'User Password for email sending',
Value:''
},
Endgroup1: '',
Input9:{
Name:'DBSave',
Label:'Would you like to save data in the DB?',
Type:'Select',
Options: [
{
'Value': 'yes',
'Text': 'yes'
},
{
'Value': 'no',
'Text': 'no'
}
]
},
Group2:'class=dbwanted',
SubHeader2:'Details for connection to database for saving email status',
Input10:{
Name:'DBHost',
Label:'Host name for DB server',
Type:'Text',
Value:'localhost'
},
Input11:{
Name:'DBPort',
Label:'Port number for DB server',
Type:'Number',
Value:'25'
},
Input12:{
Name:'DBUser',
Type:'Text',
Label:'User name for DB sending',
Value:'admin'
},
Input13:{
Name:'DBPassword',
Type:'Password',
Label:'User Password for DB sending',
Value:''
},
Endgroup2: '',
SubHeader3: 'Email filtering / exclusion',
Input14:{
Name:'CountrySelect',
Label:'Select the countries you would like to reject',
Type:'MultiSelect',
Options:[{'Value':'$c->get_CountryCodes()',
'Text':'$c->get_CountryCodes()'}]
},
Input15:{
Name:'AccumCountryCodes',
Type:'Text',
Label:'Accumulated country codes (editable)',
Value:''
},
Input16:{
Name:'EnableRHSBL',
Label:'Enable RHSBL checking',
Type:'Select',
Options: [
{
'Value': 'enabled',
'Text': 'yes'
},
{
'Value': 'disabled',
'Text': 'no'
}
]
},
Input17:{
Name:'EnableDNSBL',
Label:'Enable DNSBL checking',
Type:'Select',
Options: [
{
'Value': 'enabled',
'Text': 'yes'
},
{
'Value': 'disabled',
'Text': 'no'
}
]
},
Input24:{
Name:'EnableURIBL',
Label:'Enable URIBL checking',
Type:'Select',
Options: [
{
'Value': 'enabled',
'Text': 'yes'
},
{
'Value': 'disabled',
'Text': 'no'
}
]
},
Input18:{
Name:'RBLList',
Type:'Text',
Label:'RBL Servers to use',
Value:''
},
Input19:{
Name:'SBLList',
Type:'Text',
Label:'SBL Servers to use',
Value:''
},
Input20:{
Name:'UBLList',
Type:'Text',
Label:'UBL Servers to use',
Value:''
},
SubHeader4:'Spamassassin scores - tag and reject levels',
Input21:{
Name:'RejectLevel',
Label:'Score to fully reject emmail',
Type:'Number',
Value:'12'
},
Input22:{
Name:'TagLevel',
Label:'Score for tagging as spam, but queued',
Type:'Number',
Value:'4'
},
Input23: {
Type: 'Submit',
Value: 'Save',
Name: 'Save',
Label: null
}
}
]
}