Skip to content

Commit cce9d63

Browse files
author
florian030
committed
2 parents 5b3d2c2 + 3faab0c commit cce9d63

Some content is hidden

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

43 files changed

+197
-15
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE `mail_user` ADD `disablesieve-filter` ENUM( 'y', 'n' ) NOT NULL DEFAULT 'n' AFTER `disablesieve`;

install/sql/ispconfig3.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,7 @@ CREATE TABLE `mail_user` (
912912
`disabledeliver` enum('n','y') NOT NULL default 'n',
913913
`disablesmtp` enum('n','y') NOT NULL default 'n',
914914
`disablesieve` enum('n','y') NOT NULL default 'n',
915+
`disablesieve-filter` enum('n','y') NOT NULL default 'n',
915916
`disablelda` enum('n','y') NOT NULL default 'n',
916917
`disablelmtp` enum('n','y') NOT NULL default 'n',
917918
`disabledoveadm` enum('n','y') NOT NULL default 'n',

install/tpl/debian6_dovecot-sql.conf.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ connect = host={mysql_server_host} dbname={mysql_server_database} user={mysql_se
1414
default_pass_scheme = CRYPT
1515

1616
password_query = SELECT password FROM mail_user WHERE (login = '%u' OR email = '%u') AND disable%Ls = 'n'
17-
user_query = SELECT email as user, maildir as home, CONCAT('maildir:', maildir, '/Maildir') as mail, uid, gid, CONCAT('*:storage=', quota, 'B') AS quota_rule, CONCAT(maildir, '/.sieve') as sieve FROM mail_user WHERE (login = '%u' OR email = '%u') AND disable%Ls = 'n'
17+
user_query = SELECT email as user, maildir as home, CONCAT('maildir:', maildir, '/Maildir') as mail, uid, gid, CONCAT('*:storage=', quota, 'B') AS quota_rule, CONCAT(maildir, '/.sieve') as sieve FROM mail_user WHERE (login = '%u' OR email = '%u') AND `disable%Ls` = 'n'
1818

1919
# The iterate_query is required for the doveadm command only and works only on dovecot 2 servers.
2020
# Do not enable it on Dovecot 1.x servers

install/tpl/fedora_dovecot-sql.conf.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ connect = host={mysql_server_host} dbname={mysql_server_database} user={mysql_se
134134
default_pass_scheme = CRYPT
135135

136136
password_query = SELECT password FROM mail_user WHERE (login = '%u' OR email = '%u') AND disable%Ls = 'n'
137-
user_query = SELECT email as user, maildir as home, CONCAT('maildir:', maildir, '/Maildir') as mail, uid, gid, CONCAT('*:storage=', quota, 'B') AS quota_rule, CONCAT(maildir, '/.sieve') as sieve FROM mail_user WHERE (login = '%u' OR email = '%u') AND disable%Ls = 'n'
137+
user_query = SELECT email as user, maildir as home, CONCAT('maildir:', maildir, '/Maildir') as mail, uid, gid, CONCAT('*:storage=', quota, 'B') AS quota_rule, CONCAT(maildir, '/.sieve') as sieve FROM mail_user WHERE (login = '%u' OR email = '%u') AND `disable%Ls` = 'n'
138138

139139
# The iterate_query is required for the doveadm command only and works only on dovecot 2 servers.
140140
# Do not enable it on Dovecot 1.x servers

install/tpl/opensuse_dovecot-sql.conf.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ connect = host={mysql_server_host} dbname={mysql_server_database} user={mysql_se
134134
default_pass_scheme = CRYPT
135135

136136
password_query = SELECT password FROM mail_user WHERE (login = '%u' OR email = '%u') AND disable%Ls = 'n'
137-
user_query = SELECT email as user, maildir as home, CONCAT('maildir:', maildir, '/Maildir') as mail, uid, gid, CONCAT('*:storage=', quota, 'B') AS quota_rule, CONCAT(maildir, '/.sieve') as sieve FROM mail_user WHERE (login = '%u' OR email = '%u') AND disable%Ls = 'n'
137+
user_query = SELECT email as user, maildir as home, CONCAT('maildir:', maildir, '/Maildir') as mail, uid, gid, CONCAT('*:storage=', quota, 'B') AS quota_rule, CONCAT(maildir, '/.sieve') as sieve FROM mail_user WHERE (login = '%u' OR email = '%u') AND `disable%Ls` = 'n'
138138

139139
# The iterate_query is required for the doveadm command only and works only on dovecot 2 servers.
140140
# Do not enable it on Dovecot 1.x servers

interface/lib/classes/db_mysql.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ private function _sqlerror($sErrormsg = 'Unbekannter Fehler', $sAddMsg = '') {
419419
if($this->show_error_messages && $conf['demo_mode'] === false) {
420420
echo $sErrormsg . $sAddMsg;
421421
} else if(is_object($app) && method_exists($app, 'log')) {
422-
$app->log($sErrormsg . $sAddMsg, LOGLEVEL_WARN);
422+
$app->log($sErrormsg . $sAddMsg . ' -> ' . $mysql_errno . ' (' . $mysql_error . ')', LOGLEVEL_WARN);
423423
}
424424
}
425425

interface/web/client/form/client.tform.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@
250250
'formtype' => 'SELECT',
251251
'default' => (isset($conf['language']) ? strtoupper($conf['language']) : ''),
252252
'datasource' => array ( 'type' => 'SQL',
253-
'querystring' => 'SELECT iso,printable_name FROM country ORDER BY iso ASC',
253+
'querystring' => 'SELECT iso,printable_name FROM country ORDER BY printable_name ASC',
254254
'keyfield' => 'iso',
255255
'valuefield' => 'printable_name'
256256
),

interface/web/dns/form/dns_a.tform.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@
129129
'ttl' => array (
130130
'datatype' => 'INTEGER',
131131
'formtype' => 'TEXT',
132+
'validators' => array ( 0 => array ( 'type' => 'RANGE',
133+
'range' => '60:',
134+
'errmsg'=> 'ttl_range_error'),
135+
),
132136
'default' => '86400',
133137
'value' => '',
134138
'width' => '10',

interface/web/dns/form/dns_aaaa.tform.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@
122122
'ttl' => array (
123123
'datatype' => 'INTEGER',
124124
'formtype' => 'TEXT',
125+
'validators' => array ( 0 => array ( 'type' => 'RANGE',
126+
'range' => '60:',
127+
'errmsg'=> 'ttl_range_error'),
128+
),
125129
'default' => '86400',
126130
'value' => '',
127131
'width' => '10',

interface/web/dns/form/dns_alias.tform.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@
138138
'ttl' => array (
139139
'datatype' => 'INTEGER',
140140
'formtype' => 'TEXT',
141+
'validators' => array ( 0 => array ( 'type' => 'RANGE',
142+
'range' => '60:',
143+
'errmsg'=> 'ttl_range_error'),
144+
),
141145
'default' => '86400',
142146
'value' => '',
143147
'width' => '10',

0 commit comments

Comments
 (0)