pmg-gui/js/SpamDetectorConfiguration.js
Dominik Csapak e2c7198f53 add Custom Scores panel to the Spam Detector
with this panel, users can manually override a rule score for
SpamAssassin rules. This can be useful sometimes, e.g. if
a certain rule always triggers in a certain environment which
is considered spam by the SpamAssassin rules

after adding/editing a rule, we show diff, similar to the network
panel, and offer a button to apply those changes (and restart
pmg-smtp-filter). the changes can also be reverted

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-11-15 10:01:17 +01:00

36 lines
692 B
JavaScript

Ext.define('PMG.SpamDetectorConfiguration', {
extend: 'Ext.tab.Panel',
alias: 'widget.pmgSpamDetectorConfiguration',
title: gettext('Configuration') + ': ' +
gettext('Spam Detector'),
border: false,
defaults: { border: false },
items: [
{
title: gettext('Options'),
itemId: 'options',
xtype: 'pmgSpamDetectorOptions'
},
{
title: gettext('Quarantine'),
itemId: 'quarantine',
xtype: 'pmgSpamQuarantineOptions'
},
{
title: gettext('Status'),
itemId: 'status',
xtype: 'pmgSpamDetectorStatus'
},
{
title: gettext('Custom Scores'),
itemId: 'scores',
xtype: 'pmgSpamDetectorCustomScores'
},
]
});