Skip to content

Commit 4e7fac5

Browse files
author
Marius Burkard
committed
Merge branch 'patch-misc' into 'stable-3.1'
Patch misc See merge request ispconfig/ispconfig3!920
2 parents 0c49824 + d77b121 commit 4e7fac5

File tree

72 files changed

+117
-109
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+117
-109
lines changed

install/dist/tpl/gentoo/amavisd-ispconfig.conf.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ $final_spam_destiny = D_DISCARD;
6767
$final_banned_destiny = D_BOUNCE;
6868
$final_bad_header_destiny = D_PASS;
6969

70-
# Default settings, we st this very high to not filter aut emails accidently
70+
# Default settings, we set this very high to not filter out emails accidentally
7171
$sa_spam_subject_tag = '***SPAM*** ';
7272
$sa_tag_level_deflt = 20.0; # add spam info headers if at, or above that level
7373
$sa_tag2_level_deflt = 60.0; # add 'spam detected' headers at that level

install/tpl/amavisd_user_config.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ $final_spam_destiny = D_DISCARD;
4949
$final_banned_destiny = D_BOUNCE;
5050
$final_bad_header_destiny = D_PASS;
5151

52-
# Default settings, we st this very high to not filter aut emails accidently
52+
# Default settings, we set this very high to not filter out emails accidentally
5353
$sa_spam_subject_tag = '***SPAM*** ';
5454
$sa_tag_level_deflt = 20.0; # add spam info headers if at, or above that level
5555
$sa_tag2_level_deflt = 60.0; # add 'spam detected' headers at that level
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
user = {mysql_server_ispconfig_user}
22
password = {mysql_server_ispconfig_password}
33
dbname = {mysql_server_database}
4-
query = SELECT 'greylisting' FROM (SELECT `greylisting`, 1 as `prio` FROM `mail_user` WHERE `server_id` = {server_id} AND `email` = '%s' UNION SELECT `greylisting`, 2 as `prio` FROM `mail_forwarding` WHERE `server_id` = {server_id} AND `source` = '%s' UNION SELECT `greylisting`, 3 as `prio` FROM `mail_forwarding` WHERE `server_id` = {server_id} AND `source` = '@%d' ORDER BY `prio` ASC LIMIT 1) as rules WHERE rules.greylisting = 'y'
4+
query = SELECT 'greylisting' FROM
5+
(SELECT `greylisting`, 1 as `prio` FROM `mail_user` WHERE `server_id` = {server_id} AND `email` = '%s'
6+
UNION SELECT `greylisting`, 2 as `prio` FROM `mail_forwarding` WHERE `server_id` = {server_id} AND `source` = '%s'
7+
UNION SELECT `greylisting`, 3 as `prio` FROM `mail_forwarding` WHERE `server_id` = {server_id} AND `source` = '@%d' ORDER BY `prio` ASC LIMIT 1) as rules
8+
WHERE rules.greylisting = 'y'
59

6-
hosts = {mysql_server_ip}
10+
hosts = {mysql_server_ip}

interface/lib/classes/remote.d/mail.inc.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ public function mail_spamfilter_blacklist_get($session_id, $primary_id)
710710
return $app->remoting_lib->getDataRecord($primary_id);
711711
}
712712

713-
//* czarna lista e-mail
713+
//* Add a new spamfilter blacklist
714714
public function mail_spamfilter_blacklist_add($session_id, $client_id, $params)
715715
{
716716
if (!$this->checkPerm($session_id, 'mail_spamfilter_blacklist_add'))
@@ -810,7 +810,7 @@ public function mail_policy_get($session_id, $primary_id)
810810
return $app->remoting_lib->getDataRecord($primary_id);
811811
}
812812

813-
//* polityki filtrów spamu e-mail
813+
//* Add a spam policy
814814
public function mail_policy_add($session_id, $client_id, $params)
815815
{
816816
if (!$this->checkPerm($session_id, 'mail_policy_add'))
@@ -860,7 +860,7 @@ public function mail_fetchmail_get($session_id, $primary_id)
860860
return $app->remoting_lib->getDataRecord($primary_id);
861861
}
862862

863-
//* fetchmail
863+
//* Add fetchmail
864864
public function mail_fetchmail_add($session_id, $client_id, $params)
865865
{
866866
if (!$this->checkPerm($session_id, 'mail_fetchmail_add'))
@@ -960,7 +960,7 @@ public function mail_blacklist_get($session_id, $primary_id)
960960
return $app->remoting_lib->getDataRecord($primary_id);
961961
}
962962

963-
//* wpisy białej listy
963+
//* Add blacklist
964964
public function mail_blacklist_add($session_id, $client_id, $params)
965965
{
966966
if (!$this->checkPerm($session_id, 'mail_blacklist_add'))
@@ -1010,7 +1010,7 @@ public function mail_filter_get($session_id, $primary_id)
10101010
return $app->remoting_lib->getDataRecord($primary_id);
10111011
}
10121012

1013-
//* wpisy filtrow e-mail
1013+
//* Add mail filter
10141014
public function mail_filter_add($session_id, $client_id, $params)
10151015
{
10161016
if (!$this->checkPerm($session_id, 'mail_filter_add'))

interface/lib/classes/validate_autoresponder.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ function end_date($field_name, $field_value, $validator)
5353

5454
// Parse date
5555
$datetimeformat = (isset($app->remoting_lib) ? $app->remoting_lib->datetimeformat : $app->tform->datetimeformat);
56-
$start_date_array = date_parse_from_format($datetimeformat,$start_date);
57-
$end_date_array = date_parse_from_format($datetimeformat,$field_value);
56+
$start_date_array = date_parse_from_format($datetimeformat, $start_date);
57+
$end_date_array = date_parse_from_format($datetimeformat, $field_value);
5858

5959
//calculate timestamps
6060
$start_date_tstamp = mktime($start_date_array['hour'], $start_date_array['minute'], $start_date_array['second'], $start_date_array['month'], $start_date_array['day'], $start_date_array['year']);

interface/lib/plugins/mail_user_filter_plugin.inc.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ function onLoad() {
5555

5656

5757
/*
58-
function to create the mail filter rule and insert it into the custom rules
59-
field when a new mail filter is added or modified.
60-
*/
58+
* Render the mail filter rule in the desired format and insert it into the custom rules
59+
* field when a new mail filter is added or modified.
60+
*/
6161
function mail_user_filter_edit($event_name, $page_form) {
6262
global $app, $conf;
6363

@@ -91,6 +91,9 @@ function mail_user_filter_edit($event_name, $page_form) {
9191

9292
}
9393

94+
/*
95+
* Remove the rendered filter from custom_mailfilter when a mail_user_filter is deleted
96+
*/
9497
function mail_user_filter_del($event_name, $page_form) {
9598
global $app, $conf;
9699

interface/web/admin/form/directive_snippets.tform.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
'separator' => ',',
124124
),
125125
//#################################
126-
// ENDE Datatable fields
126+
// END Datatable fields
127127
//#################################
128128
)
129129
);

interface/web/admin/form/firewall.tform.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
'value' => array(0 => 'n', 1 => 'y')
104104
),
105105
//#################################
106-
// ENDE Datatable fields
106+
// END Datatable fields
107107
//#################################
108108
)
109109
);

interface/web/admin/form/remote_user.tform.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
)
152152

153153
//#################################
154-
// ENDE Datatable fields
154+
// END Datatable fields
155155
//#################################
156156
)
157157
);

interface/web/admin/form/server.tform.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
'value' => array(0 => 'No', 1 => 'Yes')
136136
),
137137
//#################################
138-
// ENDE Datatable fields
138+
// END Datatable fields
139139
//#################################
140140
)
141141
);
@@ -160,7 +160,7 @@
160160
'maxlength' => ''
161161
),
162162
##################################
163-
# ENDE Datatable fields
163+
# END Datatable fields
164164
##################################
165165
)
166166
);

0 commit comments

Comments
 (0)