diff --git a/CHANGES b/CHANGES index b4aa715a0..12fa8116e 100644 --- a/CHANGES +++ b/CHANGES @@ -2690,4 +2690,5 @@ * api: return json when route not found * oidc: loginRedirectUri can be empty string * New base image 4.2.0. sha256: b5117f36a07d1fd7136e8086694056adbb9a53ef6f0c822ab9c5c84f2ef4fe4f +* mail: add option to enable/disable Virtual All mailbox diff --git a/dashboard/src/js/client.js b/dashboard/src/js/client.js index f43216186..21ca90962 100644 --- a/dashboard/src/js/client.js +++ b/dashboard/src/js/client.js @@ -2914,6 +2914,23 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout }); }; + Client.prototype.getVirtualAllMail = function (callback) { + get('/api/v1/mailserver/virtual_all_mail', {}, function (error, data, status) { + if (error) return callback(error); + if (status !== 200) return callback(new ClientError(status, data)); + callback(null, data.enabled); + }); + }; + + Client.prototype.setVirtualAllMail = function (enable, callback) { + post('/api/v1/mailserver/virtual_all_mail', { enable: enable }, null, function (error, data, status) { + if (error) return callback(error); + if (status !== 200) return callback(new ClientError(status, data)); + + callback(null); + }); + }; + Client.prototype.getDnsblConfig = function (callback) { var config = {}; diff --git a/dashboard/src/translation/en.json b/dashboard/src/translation/en.json index 2b451c098..489f9dfd9 100644 --- a/dashboard/src/translation/en.json +++ b/dashboard/src/translation/en.json @@ -677,7 +677,8 @@ "solrRunning": "Running", "solrNotRunning": "Not Running", "acl": "Mail ACL", - "aclOverview": "{{ dnsblZonesCount }} DNSBL zone(s)" + "aclOverview": "{{ dnsblZonesCount }} DNSBL zone(s)", + "virtualAllMail": "\"All Mail\" Folder" }, "eventlog": { "title": "Email Event Log", @@ -768,6 +769,10 @@ }, "action": { "queue": "Queue" + }, + "changeVirtualAllMailDialog": { + "title": "\"All Mail\" Folder", + "description": "The \"All Mail\" folder is a single folder that contains all the mails in your Inbox. The folder can be useful in mail clients that do not support recursive folder search." } }, "network": { diff --git a/dashboard/src/translation/nl.json b/dashboard/src/translation/nl.json index 484b2132e..3d32adaf5 100644 --- a/dashboard/src/translation/nl.json +++ b/dashboard/src/translation/nl.json @@ -634,7 +634,8 @@ "description": "Backup behouden, ongeacht het bewaarbeleid" }, "title": "Bewerk Backup", - "label": "Label" + "label": "Label", + "remotePath": "Extern pad" } }, "branding": { diff --git a/dashboard/src/views/emails.html b/dashboard/src/views/emails.html index f6b0580da..18e2bf28d 100644 --- a/dashboard/src/views/emails.html +++ b/dashboard/src/views/emails.html @@ -24,6 +24,24 @@ + + +