mailbox: add checkbox for pop3

This commit is contained in:
Girish Ramakrishnan
2021-10-08 10:20:17 -07:00
parent 355a4df65f
commit 0f4e71d478
4 changed files with 19 additions and 9 deletions

View File

@@ -2570,13 +2570,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype.updateMailbox = function (domain, name, ownerId, ownerType, active, callback) {
var data = {
ownerId: ownerId,
ownerType: ownerType,
active: active
};
Client.prototype.updateMailbox = function (domain, name, data, callback) {
post('/api/v1/mail/' + domain + '/mailboxes/' + name, data, null, function (error, data, status) {
if (error) return callback(error);
if (status !== 204) return callback(new ClientError(status, data));