diff --git a/root/etc/e-smith/db/configuration/defaults/postfix/FilterType b/root/etc/e-smith/db/configuration/defaults/postfix/FilterType new file mode 100644 index 0000000..72d1398 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/postfix/FilterType @@ -0,0 +1 @@ +sieve diff --git a/root/etc/e-smith/db/configuration/defaults/qmail/FilterType b/root/etc/e-smith/db/configuration/defaults/qmail/FilterType new file mode 100644 index 0000000..72d1398 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/qmail/FilterType @@ -0,0 +1 @@ +sieve diff --git a/root/usr/share/smanager/lib/SrvMngr/Controller/Mailsorting-Custom.pm b/root/usr/share/smanager/lib/SrvMngr/Controller/Mailsorting-Custom.pm index ddd01a2..bf69bfb 100644 --- a/root/usr/share/smanager/lib/SrvMngr/Controller/Mailsorting-Custom.pm +++ b/root/usr/share/smanager/lib/SrvMngr/Controller/Mailsorting-Custom.pm @@ -173,7 +173,7 @@ sub get_filtertype{ $cdb = esmith::ConfigDB::UTF8->open(); $adb = esmith::AccountsDB::UTF8->open || die "Couldn't open accounts db"; #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) { return $adb->get_prop($PanelUser,'FilterType') || '' } else { @@ -842,4 +842,4 @@ sub nonblankWithSort -1; \ No newline at end of file +1; diff --git a/root/usr/share/smanager/themes/default/templates/partials/_ms_TABLE.html.ep b/root/usr/share/smanager/themes/default/templates/partials/_ms_TABLE.html.ep index fe63527..daa731b 100644 --- a/root/usr/share/smanager/themes/default/templates/partials/_ms_TABLE.html.ep +++ b/root/usr/share/smanager/themes/default/templates/partials/_ms_TABLE.html.ep @@ -15,7 +15,7 @@ %= form_for "mailsortingu" => (method => 'POST') => begin % param 'trt' => $ms_data->{trt} unless param 'trt'; %= hidden_field 'trt' => $ms_data->{trt} - %= hidden_field 'account' => $c->{account} + %= hidden_field 'account' => $ms_data->{account} %# Inputs etc in here.