%# %# 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_Manage_mailsortingModifyRule_settings:')%>

%=l('ms_Modify_your_rule.')

%=l('ms_You_can_change_the_order')

%=l('ms_basis') % my @basis_options = [['Subject' => 'Subject'], ['To' => 'TO_'], ['From' => 'From'], ['Email Headers' => 'headers'], ['Size greater than' => 'sizegt'], ['Size less than' => 'sizelt']]; % param 'basis' => $ms_data->{basis} unless param 'basis'; %= select_field 'basis' => @basis_options, class => 'input', id => 'basis_select'

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

%=l('ms_basis2') % my @basis2_options = [['' => ''], ['Subject' => 'Subject'], ['To' => 'TO_'], ['From' => 'From'], ['Email Headers' => 'headers']]; % param 'basis2' => $ms_data->{basis2} unless param 'basis2'; %= select_field 'basis2' => @basis2_options, class => 'input', id => 'basis2_select'

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

%=l('ms_action') % my @action_options = [['Delete email' => 'delete'], ['Forward email' => 'forward'], ['Sort to mail folder' => 'sort']]; % param 'action' => $ms_data->{action} unless param 'action'; %= select_field 'action' => @action_options, class => 'input', id => 'action_select'

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

%=l('ms_folder') % my @folder_options = ; % param 'folder' => $ms_data->{folder} unless param 'folder'; %= select_field 'folder' => @folder_options, class => 'input', id => 'folder_select'

%=l('ms_copy') % my @copy_options = [['No' => 'no'], ['Yes' => 'yes']]; % param 'copy' => $ms_data->{copy} unless param 'copy'; %= select_field 'copy' => @copy_options, class => 'input', id => 'copy_select'

%=l('ms_action2') % my @action2_options = [['' => ''], ['Delete email' => 'delete'], ['Forward email' => 'forward'], ['Send to my inbox' => 'inbox']]; % param 'action2' => $ms_data->{action2} unless param 'action2'; %= select_field 'action2' => @action2_options, class => 'input', id => 'action2_select'

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

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

%= submit_button l('ms_Save'), class => 'action subm12' %# Probably finally by a submit. %end