[% USE SpamAssassin; SET CPANEL.CPVAR.dprefix = '../../'; SET spam_settings = execute( 'Email', 'get_spam_settings', { account => CPANEL.authuser }, ).data(); SET page_data = { spam_settings => spam_settings, authuser => CPANEL.authuser, }; SET can_disable_filter = spam_settings.spam_status_changeable; SET max_spam_threshold = spam_settings.cpuser_spam_auto_delete ? (spam_settings.cpuser_spam_auto_delete_score - 1) : ''; -%] [% WRAPPER '_assets/master.html.tt' app_key = 'apache_spam_assassin', include_legacy_stylesheets = 0, page_stylesheets = [ 'mail/spam/index.css', ], -%] [% PROCESS '_assets/cjt2_header_include.tt'; %]
[% IF CPANEL.feature('spamassassin') && spam_settings.spam_enabled -%]

[% locale.maketext('This utility lets you filter unwanted “spam” email before it reaches your inbox.') %]

[% locale.maketext('Spam Auto-Delete Threshold') %]

[% locale.maketext('This server assigns a spam score (via the [output,class,_1,code] header) to each email that you receive. Use this control to tell the server to discard any emails whose spam score meets or exceeds a designated threshold. [output,strong,The lower the threshold~, the more emails the server will discard.]', 'X-Spam-Bar') %]

[% IF spam_settings.cpuser_spam_auto_delete -%]
[% IF CPANEL.authuser == CPANEL.user -%] [% locale.maketext('You have set an account-wide auto-delete threshold of [numf,_1] in the [asis,cPanel] interface. The current interface controls an optional auto-delete threshold that is specific to your system email account. This threshold, if defined, must be lower than the account-wide threshold.') -%] [% ELSE -%] [% locale.maketext('Your account owner has set an auto-delete threshold of [numf,_1]. You can use that threshold or set a lower one for your own account, but you cannot disable the auto-deletion.', spam_settings.cpuser_spam_auto_delete_score) -%] [% END -%]
[% END -%]
[% ELSE -%]

[% locale.maketext('This feature is disabled.') -%]

[% END -%]
[% END #wrapper -%]