258 lines
6.9 KiB
Plaintext
258 lines
6.9 KiB
Plaintext
|
{
|
||
|
PackageName: 'Mailsorting',
|
||
|
prefix: 'ms',
|
||
|
MenuHeading: 'System',
|
||
|
MenuDescription: 'Process Mail',
|
||
|
MenuNavigation: '6000 1200',
|
||
|
firstPanel: 'TABLE',
|
||
|
signalEvent: 'smeserver-mailsortingtable-update',
|
||
|
html: [
|
||
|
{
|
||
|
Name: 'table',
|
||
|
route: 'TABLE',
|
||
|
Header: 'Mail sorting rules',
|
||
|
Paragraph1: 'Rules are executed as email arrives in your mailbox on the server, and are independent of your email client. Your current rules, if you have any are listed below.',
|
||
|
Input97: {
|
||
|
Type: 'Text',
|
||
|
Value: '',
|
||
|
Name: 'account',
|
||
|
Label: 'Account',
|
||
|
Readonly:'true'
|
||
|
|
||
|
},
|
||
|
Input96: {
|
||
|
Type: 'Text',
|
||
|
Value: '',
|
||
|
Name: 'username',
|
||
|
Label: 'User Name',
|
||
|
Readonly:'true'
|
||
|
},
|
||
|
Link1: {
|
||
|
Type: 'Link',
|
||
|
href: 'mailsortingdd?trt=RULES',
|
||
|
title: 'Add new rule'
|
||
|
},
|
||
|
SubHeader: 'Current rules',
|
||
|
Table1: {
|
||
|
Type: 'Table',
|
||
|
TableControl: 'getAllRules',
|
||
|
TopHeadings: [
|
||
|
'Match Against',
|
||
|
'The Rule',
|
||
|
'2nd Match',
|
||
|
'2nd Rule',
|
||
|
'Action',
|
||
|
'Destination',
|
||
|
'Copy',
|
||
|
'Destination',
|
||
|
'Serial Number',
|
||
|
'Modify',
|
||
|
'Remove'
|
||
|
],
|
||
|
Columns: [
|
||
|
'MatchAgainst',
|
||
|
'TheRule',
|
||
|
'c2ndMatch',
|
||
|
'c2ndRule',
|
||
|
'Action',
|
||
|
'Destination',
|
||
|
'Copy',
|
||
|
'Destination',
|
||
|
'Serial Number',
|
||
|
'Modify',
|
||
|
'Remove'
|
||
|
]
|
||
|
}
|
||
|
|
||
|
},
|
||
|
{ Name: 'rules',
|
||
|
route: 'RULES',
|
||
|
Header: 'Mail sorting rules',
|
||
|
SubHeader: 'Manage mailsortingModifyRule settings:',
|
||
|
Paragraph1: 'Modify your rule.',
|
||
|
Paragraph2: 'You can change the order in which rules are evaluated by altering the numeric value in order of rule execution. Priority is determined by ascii value, and must be unique. eg rule user101 goes first, then user5 then user99',
|
||
|
Input1: {
|
||
|
Type: 'Select',
|
||
|
Value: '',
|
||
|
Name: 'basis',
|
||
|
Label: 'basis',
|
||
|
Options: [
|
||
|
{
|
||
|
Value: 'Subject',
|
||
|
Text: 'Subject'
|
||
|
},
|
||
|
{
|
||
|
Value: 'TO_',
|
||
|
Text: 'To'
|
||
|
},
|
||
|
{
|
||
|
Value: 'From',
|
||
|
Text: 'From'
|
||
|
},
|
||
|
{
|
||
|
Value: 'headers',
|
||
|
Text: 'Email Headers'
|
||
|
},
|
||
|
{
|
||
|
Value: 'sizegt',
|
||
|
Text: 'Size greater than'
|
||
|
},
|
||
|
{
|
||
|
Value: 'sizelt',
|
||
|
Text: 'Size less than'
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
Input2: {
|
||
|
Type: 'Text',
|
||
|
Value: '',
|
||
|
Name: 'criterion',
|
||
|
Label: 'criterion'
|
||
|
},
|
||
|
Input3: {
|
||
|
Type: 'Select',
|
||
|
Value: '',
|
||
|
Name: 'basis2',
|
||
|
Label: 'basis2',
|
||
|
Options: [
|
||
|
{
|
||
|
Value: '',
|
||
|
Text: ''
|
||
|
},
|
||
|
{
|
||
|
Value: 'Subject',
|
||
|
Text: 'Subject'
|
||
|
},
|
||
|
{
|
||
|
Value: 'TO_',
|
||
|
Text: 'To'
|
||
|
},
|
||
|
{
|
||
|
Value: 'From',
|
||
|
Text: 'From'
|
||
|
},
|
||
|
{
|
||
|
Value: 'headers',
|
||
|
Text: 'Email Headers'
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
Input4: {
|
||
|
Type: 'Text',
|
||
|
Value: '',
|
||
|
Name: 'criterion2',
|
||
|
Label: 'criterion2'
|
||
|
},
|
||
|
Input5: {
|
||
|
Type: 'Select',
|
||
|
Value: '',
|
||
|
Name: 'action',
|
||
|
Label: 'action',
|
||
|
Options: [
|
||
|
{
|
||
|
Value: 'delete',
|
||
|
Text: 'Delete email'
|
||
|
},
|
||
|
{
|
||
|
Value: 'forward',
|
||
|
Text: 'Forward email'
|
||
|
},
|
||
|
{
|
||
|
Value: 'sort',
|
||
|
Text: 'Sort to mail folder'
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
Input6: {
|
||
|
Type: 'Text',
|
||
|
Value: '',
|
||
|
Name: 'deliver',
|
||
|
Label: 'deliver'
|
||
|
},
|
||
|
Input7: {
|
||
|
Type: 'Select',
|
||
|
Value: '',
|
||
|
Name: 'folder',
|
||
|
Label: 'folder',
|
||
|
Options: []
|
||
|
},
|
||
|
Input8: {
|
||
|
Type: 'Select',
|
||
|
Value: '',
|
||
|
Name: 'copy',
|
||
|
Label: 'copy',
|
||
|
Options: [
|
||
|
{
|
||
|
Value: 'no',
|
||
|
Text: 'No'
|
||
|
},
|
||
|
{
|
||
|
Value: 'yes',
|
||
|
Text: 'Yes'
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
Input9: {
|
||
|
Type: 'Select',
|
||
|
Value: '',
|
||
|
Name: 'action2',
|
||
|
Label: 'action2',
|
||
|
Options: [
|
||
|
{
|
||
|
Value: '',
|
||
|
Text: ''
|
||
|
},
|
||
|
{
|
||
|
Value: 'delete',
|
||
|
Text: 'Delete email'
|
||
|
},
|
||
|
{
|
||
|
Value: 'forward',
|
||
|
Text: 'Forward email'
|
||
|
},
|
||
|
{
|
||
|
Value: 'inbox',
|
||
|
Text: 'Send to my inbox'
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
Input10: {
|
||
|
Type: 'Text',
|
||
|
Value: '',
|
||
|
Name: 'deliver2',
|
||
|
Label: 'deliver2'
|
||
|
},
|
||
|
Input11: {
|
||
|
Type: 'Text',
|
||
|
Value: '222',
|
||
|
Name: 'key',
|
||
|
Label: 'key'
|
||
|
},
|
||
|
Input12: {
|
||
|
Type: 'Submit',
|
||
|
Value: 'Save',
|
||
|
Name: 'Save',
|
||
|
Label: 'Save'
|
||
|
}
|
||
|
},
|
||
|
{ Name:'remove',
|
||
|
route: 'REMOVE',
|
||
|
Header: 'Mail sorting rules',
|
||
|
SubHeader: 'You are about to remove a rule',
|
||
|
Input94: {
|
||
|
Type: 'Textarea',
|
||
|
Name: 'RemoveRule',
|
||
|
Label: 'Rule contents',
|
||
|
Rows:'4',
|
||
|
Readonly:'true'
|
||
|
},
|
||
|
Input95: {
|
||
|
Type: 'Submit',
|
||
|
Value: 'Remove',
|
||
|
Name: 'Remove',
|
||
|
Label: 'Remove'
|
||
|
}
|
||
|
|
||
|
}
|
||
|
]
|
||
|
}
|