|
@@ -358,6 +358,7 @@ jQuery(function($){
|
|
|
item.pop3_access = '<i class="text-' + (item.attributes.pop3_access == 1 ? 'success' : 'danger') + ' bi bi-' + (item.attributes.pop3_access == 1 ? 'check-lg' : 'x-lg') + '"></i>';
|
|
|
item.imap_access = '<i class="text-' + (item.attributes.imap_access == 1 ? 'success' : 'danger') + ' bi bi-' + (item.attributes.imap_access == 1 ? 'check-lg' : 'x-lg') + '"></i>';
|
|
|
item.smtp_access = '<i class="text-' + (item.attributes.smtp_access == 1 ? 'success' : 'danger') + ' bi bi-' + (item.attributes.smtp_access == 1 ? 'check-lg' : 'x-lg') + '"></i>';
|
|
|
+ item.sieve_access = '<i class="text-' + (item.attributes.sieve_access == 1 ? 'success' : 'danger') + ' bi bi-' + (item.attributes.sieve_access == 1 ? 'check-lg' : 'x-lg') + '"></i>';
|
|
|
if (item.attributes.quarantine_notification === 'never') {
|
|
|
item.quarantine_notification = lang.never;
|
|
|
} else if (item.attributes.quarantine_notification === 'hourly') {
|
|
@@ -375,15 +376,13 @@ jQuery(function($){
|
|
|
item.quarantine_category = lang.q_all;
|
|
|
}
|
|
|
if (acl_data.login_as === 1) {
|
|
|
- var btnSize = 'btn-xs-third';
|
|
|
- if (ALLOW_ADMIN_EMAIL_LOGIN) btnSize = 'btn-xs-quart';
|
|
|
|
|
|
- item.action = '<div class="btn-group">' +
|
|
|
- '<a href="/edit/mailbox/' + encodeURIComponent(item.username) + '" class="btn btn-xs ' + btnSize + ' btn-secondary"><i class="bi bi-pencil-fill"></i> ' + lang.edit + '</a>' +
|
|
|
- '<a href="#" data-action="delete_selected" data-id="single-mailbox" data-api-url="delete/mailbox" data-item="' + encodeURIComponent(item.username) + '" class="btn btn-xs ' + btnSize + ' btn-danger"><i class="bi bi-trash"></i> ' + lang.remove + '</a>' +
|
|
|
- '<a href="/index.php?duallogin=' + encodeURIComponent(item.username) + '" class="login_as btn btn-xs ' + btnSize + ' btn-success"><i class="bi bi-person-fill"></i> Login</a>';
|
|
|
+ item.action = '<div class="btn-group">' +
|
|
|
+ '<a href="/edit/mailbox/' + encodeURIComponent(item.username) + '" class="btn btn-xs btn-secondary"><i class="bi bi-pencil-fill"></i> ' + lang.edit + '</a>' +
|
|
|
+ '<a href="#" data-action="delete_selected" data-id="single-mailbox" data-api-url="delete/mailbox" data-item="' + encodeURIComponent(item.username) + '" class="btn btn-xs btn-danger"><i class="bi bi-trash"></i> ' + lang.remove + '</a>' +
|
|
|
+ '<a href="/index.php?duallogin=' + encodeURIComponent(item.username) + '" class="login_as btn btn-xs btn-success"><i class="bi bi-person-fill"></i> Login</a>';
|
|
|
if (ALLOW_ADMIN_EMAIL_LOGIN) {
|
|
|
- item.action += '<a href="/sogo-auth.php?login=' + encodeURIComponent(item.username) + '" class="login_as btn btn-xs ' + btnSize + ' btn-primary" target="_blank"><i class="bi bi-envelope-fill"></i> SOGo</a>';
|
|
|
+ item.action += '<a href="/sogo-auth.php?login=' + encodeURIComponent(item.username) + '" class="login_as btn btn-xs btn-primary" target="_blank"><i class="bi bi-envelope-fill"></i> SOGo</a>';
|
|
|
}
|
|
|
item.action += '</div>';
|
|
|
}
|
|
@@ -504,6 +503,11 @@ jQuery(function($){
|
|
|
data: 'pop3_access',
|
|
|
defaultContent: ''
|
|
|
},
|
|
|
+ {
|
|
|
+ title: 'SIEVE',
|
|
|
+ data: 'sieve_access',
|
|
|
+ defaultContent: ''
|
|
|
+ },
|
|
|
{
|
|
|
title: lang.quarantine_notification,
|
|
|
data: 'quarantine_notification',
|