+ %= dumper $c->current_route + %= dumper $ms_data->{trt} ++ % } + +
+ %=$c->render_to_string(inline =>$c->l($c->stash('first'))) +
+ + %} elsif ($c->stash('success')) { ++ %= $c->l($c->stash('success')); +
++ %= $c->l($c->stash('error')); +
++ %= 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. + +
+ %= 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_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 = $c->get_Folders();
+ % 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'
+
+ %= 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_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_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->{'Destination2'})%> | +<%=$c->render_to_string(inline=>$row->{'Serial Number'})%> | +<%=$c->render_to_string(inline=>$row->{'Modify'})%> | +<%=$c->render_to_string(inline=>$row->{'Remove'})%> | +