122 lines
4.6 KiB
Plaintext
122 lines
4.6 KiB
Plaintext
%#
|
|
%# Generated by SM2Gen version:0.9(20Jan2025) Chameleon version:4.5.4 On Python:3.12.3 at 2025-05-04 12:59:05
|
|
%#
|
|
<div id="Mailsorting-RULES" class="partial Mailsorting-RULES">
|
|
<script>
|
|
window.onload = function() {
|
|
SelectInput();
|
|
};
|
|
</script>
|
|
% if (config->{debug} == 1) {
|
|
<pre>
|
|
%= dumper $ms_data
|
|
</pre>
|
|
% }
|
|
% 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.
|
|
|
|
<h1 class='head'><%=l('ms_Mail_sorting_rules')%></h1>
|
|
|
|
<h2 class='subh'><%=l('ms_Manage_mailsortingModifyRule_settings:')%></h2>
|
|
|
|
<p class='paragraph para1'>
|
|
%=l('ms_Modify_your_rule.')
|
|
</p>
|
|
|
|
<p class='paragraph para2'>
|
|
%=l('ms_You_can_change_the_order')
|
|
</p>
|
|
|
|
<p><span class=label>
|
|
%=l('ms_basis')
|
|
</span><span class=data>
|
|
% 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'
|
|
<br></span> </p>
|
|
|
|
<p><span class=label>
|
|
%=l('ms_criterion')
|
|
</span><span class=data>
|
|
% 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'
|
|
<br></span></p>
|
|
|
|
<p><span class=label>
|
|
%=l('ms_basis2')
|
|
</span><span class=data>
|
|
% 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'
|
|
<br></span> </p>
|
|
|
|
<p><span class=label>
|
|
%=l('ms_criterion2')
|
|
</span><span class=data>
|
|
% 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'
|
|
<br></span></p>
|
|
|
|
<p><span class=label>
|
|
%=l('ms_action')
|
|
</span><span class=data>
|
|
% 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'
|
|
<br></span> </p>
|
|
|
|
<p><span class=label>
|
|
%=l('ms_deliver')
|
|
</span><span class=data>
|
|
% 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'
|
|
<br></span></p>
|
|
|
|
<p><span class=label>
|
|
%=l('ms_folder')
|
|
</span><span class=data>
|
|
% my @folder_options = ;
|
|
% param 'folder' => $ms_data->{folder} unless param 'folder';
|
|
%= select_field 'folder' => @folder_options, class => 'input', id => 'folder_select'
|
|
<br></span> </p>
|
|
|
|
<p><span class=label>
|
|
%=l('ms_copy')
|
|
</span><span class=data>
|
|
% 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'
|
|
<br></span> </p>
|
|
|
|
<p><span class=label>
|
|
%=l('ms_action2')
|
|
</span><span class=data>
|
|
% 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'
|
|
<br></span> </p>
|
|
|
|
<p><span class=label>
|
|
%=l('ms_deliver2')
|
|
</span><span class=data>
|
|
% 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'
|
|
<br></span></p>
|
|
|
|
<p><span class=label>
|
|
%=l('ms_key')
|
|
</span><span class=data>
|
|
% 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'
|
|
<br></span></p>
|
|
|
|
<span class='data'>
|
|
%= submit_button l('ms_Save'), class => 'action subm12'
|
|
</span>
|
|
|
|
%# Probably finally by a submit.
|
|
%end
|
|
</div> |