* Tue Nov 04 2025 Brian Read <brianr@koozali.org> 11.0.0-8.sme
- Add defaults for postfix/FilterType and qmail/FilterType [SME: 13267] - Make mailsorting use postfix/FilterType for global filter value [SME: 13267] - Sort out reverting to admin after new rule or apply to inbox [SME: 13255]
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
sieve
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
sieve
|
||||||
@@ -173,7 +173,7 @@ sub get_filtertype{
|
|||||||
$cdb = esmith::ConfigDB::UTF8->open();
|
$cdb = esmith::ConfigDB::UTF8->open();
|
||||||
$adb = esmith::AccountsDB::UTF8->open || die "Couldn't open accounts db";
|
$adb = esmith::AccountsDB::UTF8->open || die "Couldn't open accounts db";
|
||||||
#Either the filtertype is set per user or it is global
|
#Either the filtertype is set per user or it is global
|
||||||
my $globalFilterType = $cdb->get_prop('qmail', "FilterType");
|
my $globalFilterType = $cdb->get_prop('postfix', "FilterType");
|
||||||
if (! $globalFilterType) {
|
if (! $globalFilterType) {
|
||||||
return $adb->get_prop($PanelUser,'FilterType') || ''
|
return $adb->get_prop($PanelUser,'FilterType') || ''
|
||||||
} else {
|
} else {
|
||||||
@@ -842,4 +842,4 @@ sub nonblankWithSort
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
%= form_for "mailsortingu" => (method => 'POST') => begin
|
%= form_for "mailsortingu" => (method => 'POST') => begin
|
||||||
% param 'trt' => $ms_data->{trt} unless param 'trt';
|
% param 'trt' => $ms_data->{trt} unless param 'trt';
|
||||||
%= hidden_field 'trt' => $ms_data->{trt}
|
%= hidden_field 'trt' => $ms_data->{trt}
|
||||||
%= hidden_field 'account' => $c->{account}
|
%= hidden_field 'account' => $ms_data->{account}
|
||||||
%# Inputs etc in here.
|
%# Inputs etc in here.
|
||||||
|
|
||||||
<h1 class='head'><%=l('ms_Mail_sorting_rules')%></h1>
|
<h1 class='head'><%=l('ms_Mail_sorting_rules')%></h1>
|
||||||
@@ -89,15 +89,15 @@
|
|||||||
<br />
|
<br />
|
||||||
|
|
||||||
<div class = 'inline-buttons'>
|
<div class = 'inline-buttons'>
|
||||||
<a href='mailsortingd?trt=RULES' class='link link1'>
|
<a href='mailsortingd?trt=RULES&account=<%= $ms_data->{account} %>' class='link link1'>
|
||||||
%= l('ms_Add_new_rule')
|
%= l('ms_Add_new_rule')
|
||||||
</a>
|
</a>
|
||||||
% if ($filterstr eq "Dovecot Sieve"){
|
% if ($filterstr eq "Dovecot Sieve"){
|
||||||
<a href='mailsortingx?ApplyRules' class='link link1'>
|
<a href='mailsortingx?ApplyRules&account=<%= $ms_data->{account} %>' class='link link1'>
|
||||||
%= l('ms_Apply_Sieve');
|
%= l('ms_Apply_Sieve');
|
||||||
</a>
|
</a>
|
||||||
% }
|
% }
|
||||||
%# <a href='mailsortingx?ReSerialise' class='link link1'>
|
%# <a href='mailsortingx?ReSerialise&account=<%= $ms_data->{account} %>' class='link link1'>
|
||||||
%#= l('ms_Re_Serialise');
|
%#= l('ms_Re_Serialise');
|
||||||
%# </a>
|
%# </a>
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ Summary: Lets users configure procmail or maildrop rules.
|
|||||||
%define name smeserver-mailsorting
|
%define name smeserver-mailsorting
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
%define version 11.0.0
|
%define version 11.0.0
|
||||||
%define release 7
|
%define release 8
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: %{release}%{?dist}
|
Release: %{release}%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
@@ -32,6 +32,11 @@ SME Server enhancement to enable procmail or maildrop filtering for users.
|
|||||||
Optionally provides user panels where users can create mail rules for themselves
|
Optionally provides user panels where users can create mail rules for themselves
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Nov 04 2025 Brian Read <brianr@koozali.org> 11.0.0-8.sme
|
||||||
|
- Add defaults for postfix/FilterType and qmail/FilterType [SME: 13267]
|
||||||
|
- Make mailsorting use postfix/FilterType for global filter value [SME: 13267]
|
||||||
|
- Sort out reverting to admin after new rule or apply to inbox [SME: 13255]
|
||||||
|
|
||||||
* Tue Oct 21 2025 Brian Read <brianr@koozali.org> 11.0.0-7.sme
|
* Tue Oct 21 2025 Brian Read <brianr@koozali.org> 11.0.0-7.sme
|
||||||
- Typo in REMOVE partial template [SME: 13251]
|
- Typo in REMOVE partial template [SME: 13251]
|
||||||
- Update to sievefilter generation for Headers - use whole email address if provided [SME: 13251]
|
- Update to sievefilter generation for Headers - use whole email address if provided [SME: 13251]
|
||||||
|
|||||||
Reference in New Issue
Block a user