[% SET CPANEL.CPVAR.dprefix = "../"; SET is_demo_mode = CPANEL.CPDATA.item('DEMO'); IF (ExpVar.expand('$appname') == "webmail"); IF !FORM.item('account'); SET FORM.item('account') = CPANEL.authuser; END; END; IF !FORM.item('account'); SET fetch_cfg = { status => 0, errors => (locale.maketext("The “[_1]” parameter is required, and you must pass a valid string value.", 'account')) }; ELSE; SET fetch_cfg = execute('BoxTrapper', 'get_allowlist', { 'email' => RAW_FORM.item('account') }); END; %] [% js_code = PROCESS js_block %] [% WRAPPER '_assets/master.html.tt' app_key = 'boxtrapper' page_js = js_code page_stylesheets = ['mail/boxtrapper.css'] %]
[% IF (ExpVar.expand('$appname') == "webmail" && !( FORM.account == CPANEL.authuser )) || is_demo_mode %]
[% locale.maketext("You are not allowed to change settings for the user “[_1]”.", FORM.account) %]
[% END %] [% IF (!( ExpVar.expand('$appname') == "webmail") || FORM.account == CPANEL.authuser) %]

[% locale.maketext("[asis,BoxTrapper] Whitelist for the account “[output,strong,_1]”.", FORM.account) %]

[% locale.maketext("The whitelist is a list of content that will be allowed into your inbox after confirmation.") %]

[% locale.maketext("The list should contain one entry per line. Each entry should be formatted as a Perl regular expression.") %]

[% locale.maketext("For example: [asis,john@example.com] would be john[output,chr,92][asis,@example][output,chr,92][asis,.com] and all addresses at [asis,example.com] would be [asis,.+][output,chr,92][asis,@example][output,chr,92][asis,.com]") %]

[% INCLUDE boxtrapper_edit_list_form_include.html.tt status=fetch_cfg.status list_items=fetch_cfg.data errors=fetch_cfg.errors account=FORM.account list_type='allowlist' %]
[% END %] [% INCLUDE _assets/return_link.html.tt return_location='editlists.html' post='1' formdata=FORM return_link_text=locale.maketext('Go Back') %]
[% END %] [% BLOCK js_block %] [% END %]