From 89aef716b48949d58fead3525fdf8fb302866c90 Mon Sep 17 00:00:00 2001 From: tehXor Date: Fri, 17 Mar 2017 20:38:20 +0100 Subject: [PATCH 1/3] - collapsible tables on mailbox.php which are collapsed per default if they are long - changed username field on the login form to the type "text" as "name" is no valid type which causes problems with some extensions (password managers) --- data/web/index.php | 2 +- data/web/js/mailbox.js | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/data/web/index.php b/data/web/index.php index 31bafda6..e34b4da5 100644 --- a/data/web/index.php +++ b/data/web/index.php @@ -29,7 +29,7 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
- +
diff --git a/data/web/js/mailbox.js b/data/web/js/mailbox.js index eedd51cb..9bd8ef9b 100644 --- a/data/web/js/mailbox.js +++ b/data/web/js/mailbox.js @@ -51,4 +51,16 @@ $(document).ready(function() { $panel.find('.panel-body input').focus(); } }); + $('.container').on('click', '.panel-heading .panel-title', function(e){ + var $this = $(this), + $panel = $this.parents('.panel'); + $panel.find('.table-responsive').slideToggle("fast"); + }); + $('.panel-heading .panel-title').addClass('clickable'); + $('.panel .table-responsive').each(function() { + if ($(this).height() > 550) { + // If one is too large initially hide all + $('.panel .table-responsive').slideUp("fast"); + } + }) }); From 7e6fc8568f6950ee230364f4b18de7fec365ad6f Mon Sep 17 00:00:00 2001 From: andryyy Date: Sun, 19 Mar 2017 21:55:03 +0100 Subject: [PATCH 2/3] Move DKIM signing to new dkim_signing.conf --- data/conf/rspamd/local.d/dkim.conf | 34 ------------------- data/conf/rspamd/local.d/dkim_signing.conf | 38 ++++++++++++++++++++++ 2 files changed, 38 insertions(+), 34 deletions(-) delete mode 100644 data/conf/rspamd/local.d/dkim.conf create mode 100644 data/conf/rspamd/local.d/dkim_signing.conf diff --git a/data/conf/rspamd/local.d/dkim.conf b/data/conf/rspamd/local.d/dkim.conf deleted file mode 100644 index c199c6ae..00000000 --- a/data/conf/rspamd/local.d/dkim.conf +++ /dev/null @@ -1,34 +0,0 @@ -sign_condition =< Date: Mon, 20 Mar 2017 21:38:52 +0100 Subject: [PATCH 3/3] Fix Postfix sender when sender is alias in alias domain --- data/Dockerfiles/postfix/postfix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/Dockerfiles/postfix/postfix.sh b/data/Dockerfiles/postfix/postfix.sh index 8c079405..c628e771 100755 --- a/data/Dockerfiles/postfix/postfix.sh +++ b/data/Dockerfiles/postfix/postfix.sh @@ -81,7 +81,7 @@ user = ${DBUSER} password = ${DBPASS} hosts = mysql dbname = ${DBNAME} -query = SELECT goto FROM alias WHERE address='%s' AND active='1' AND domain IN(SELECT domain FROM domain WHERE domain='%d' AND active='1') UNION SELECT logged_in_as FROM sender_acl WHERE send_as='@%d' OR send_as='%s' OR send_as IN ( SELECT CONCAT ('@',target_domain) FROM alias_domain WHERE alias_domain = '%d') OR send_as IN ( SELECT CONCAT ('%u','@',target_domain) FROM alias_domain WHERE alias_domain = '%d' ) AND logged_in_as NOT IN (SELECT goto FROM alias WHERE address='%s') UNION SELECT username FROM mailbox,alias_domain WHERE alias_domain.alias_domain = '%d' AND mailbox.username = CONCAT('%u','@',alias_domain.target_domain) AND mailbox.active ='1' AND alias_domain.active='1' +query = SELECT goto FROM alias WHERE address='%s' AND active='1' AND (domain IN (SELECT domain FROM domain WHERE domain='%d' AND active='1') OR domain in (SELECT target_domain FROM alias_domain WHERE alias_domain='%d' AND active='1')) UNION SELECT logged_in_as FROM sender_acl WHERE send_as='@%d' OR send_as='%s' OR send_as IN ( SELECT CONCAT ('@',target_domain) FROM alias_domain WHERE alias_domain = '%d') OR send_as IN ( SELECT CONCAT ('%u','@',target_domain) FROM alias_domain WHERE alias_domain = '%d' ) AND logged_in_as NOT IN (SELECT goto FROM alias WHERE address='%s') UNION SELECT username FROM mailbox,alias_domain WHERE alias_domain.alias_domain = '%d' AND mailbox.username = CONCAT('%u','@',alias_domain.target_domain) AND mailbox.active ='1' AND alias_domain.active='1' EOF cat < /opt/postfix/conf/sql/mysql_virtual_spamalias_maps.cf