%# %# Generated by SM2Gen version:0.9(20Jan2025) Chameleon version:4.5.4 On Python:3.12.3 at 2025-05-04 12:59:05 %#
% if (config->{debug} == 1) {
			%= dumper $ms_data
		
% } % my $btn = l('ms_APPLY'); %= form_for "mailsortingu" => (method => 'POST') => begin % param 'trt' => $ms_data->{trt} unless param 'trt'; %= hidden_field 'trt' => $ms_data->{trt} %# Inputs etc in here.

<%=l('ms_Mail_sorting_rules')%>

%=l('ms_Rules_are_executed_as_email')

%=l('ms_Account') % param 'account' => $ms_data->{account} unless param 'account'; %= text_field 'account', size => '50', class => 'textinput account' , pattern=>'.*' , placeholder=>'account', title =>'Pattern regex mismatch', id => 'account_text'

%=l('ms_User_Name') % param 'username' => $ms_data->{username} unless param 'username'; %= text_field 'username', size => '50', class => 'textinput username' , pattern=>'.*' , placeholder=>'username', title =>'Pattern regex mismatch', id => 'username_text'

%= l('ms_Add_new_rule') %#= link_to l('ms_Add_new_rule'), 'mailsortingdd?trt=RULES' , class=>'link link1'

<%=l('ms_Current_rules')%>


% my $control_data = $c->stash('getAllRules'); % foreach my $row (@$control_data) { %}
<%=l('ms_Match_Against')%> <%=l('ms_The_Rule')%> <%=l('ms_2nd_Match')%> <%=l('ms_2nd_Rule')%> <%=l('ms_Action')%> <%=l('ms_Destination')%> <%=l('ms_Copy')%> <%=l('ms_Destination')%> <%=l('ms_Serial_Number')%> <%=l('ms_Modify')%> <%=l('ms_Remove')%>
<%=$c->render_to_string(inline=>$row->{'MatchAgainst'})%> <%=$c->render_to_string(inline=>$row->{'TheRule'})%> <%=$c->render_to_string(inline=>$row->{'c2ndMatch'})%> <%=$c->render_to_string(inline=>$row->{'c2ndRule'})%> <%=$c->render_to_string(inline=>$row->{'Action'})%> <%=$c->render_to_string(inline=>$row->{'Destination'})%> <%=$c->render_to_string(inline=>$row->{'Copy'})%> <%=$c->render_to_string(inline=>$row->{'Destination'})%> <%=$c->render_to_string(inline=>$row->{'Serial Number'})%> <%=$c->render_to_string(inline=>$row->{'Modify'})%> <%=$c->render_to_string(inline=>$row->{'Remove'})%>
%# Probably finally by a submit. %end