Add in Mailsorting project and also corrections to templates

This commit is contained in:
2025-05-04 13:01:38 +01:00
parent 8b54f7f61c
commit 7b0f9edb91
20 changed files with 9154 additions and 12 deletions

258
json5/Mailsorting.json5 Normal file
View File

@@ -0,0 +1,258 @@
{
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'
}
}
]
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

3177
json5/mailsortingTable.json5 Normal file

File diff suppressed because it is too large Load Diff