[% USE ExpVar; %] [% USE ServerRoles -%] [% USE LinkedNode -%] [% get_filter = execute('Email', 'get_filter', { account=FORM.account, filtername=FORM.filtername }) %] [% account_name = execute('Email', 'account_name', { display=1, account=FORM.account }) %] [% MACRO filter_option(pval, val, text) BLOCK -%] [% END -%] [% MACRO filter_option_legacy(pval, val, lval, text) BLOCK -%] [% END -%] [% SET lexicon = { 'Browse' => locale.lextext('Browse') } %]

[% IF RAW_FORM('filtername') %] [% locale.maketext('Please edit the filter below.') %] [% ELSE %] [% locale.maketext('Please create a filter below.') %] [% END %] [% locale.maketext('You can add multiple rules to match subjects, addresses, or other parts of the message. You can then add multiple actions to take on a message such as to deliver the message to a different address and then discard it.') %]

[%# note: former site of a serious conflict; still working? %]
[% IF !RAW_FORM('filtername') %] [% ELSE %] [% END %] [% locale.maketext("The filter name must be unique. If you give the filter the same name as another filter, the previous filter will be overwritten.") %]
[% locale.maketext("Rules") %] [% FOR q = get_filter.data.rules %] [% END %]


[% locale.maketext("Actions") %] [% FOR q = get_filter.data.actions %] [% END %]
[% IF RAW_FORM('filtername') %] [% ELSE %] [% END %]