SM2Gen/json5/Mailstats.json5

211 lines
4.9 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 for 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:'Hostname 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:'Hostname 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:'Select',
Options:[{'Value':'$c->get_CountryCodes()',
'Text':'$c->get_CountryCodes()'}]
},
Input15:{
Name:'AccumCountryCodes',
Type:'Text',
Label:'Accumlated country codes (editable)',
Value:''
},
Input16:{
Name:'EnableRHSBL',
Label:'Enable RHSBL checking',
Type:'Select',
Options: [
{
'Value': 'yes',
'Text': 'yes'
},
{
'Value': 'no',
'Text': 'no'
}
]
},
Input17:{
Name:'EnableDNSBL',
Label:'Enable DNSBL checking',
Type:'Select',
Options: [
{
'Value': 'yes',
'Text': 'yes'
},
{
'Value': 'no',
'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 parameters for rejecting email',
Input21:{
Name:'RejectLevel',
Label:'Score over which email will be fully rejected',
Type:'Number',
Value:'12'
},
Input22:{
Name:'TagLevel',
Label:'Score over which email will be tagged as spam, but queued',
Type:'Number',
Value:'4'
}
}
]
}