diff --git a/src/views/email.js b/src/views/email.js index fc62f7560..b6816d257 100644 --- a/src/views/email.js +++ b/src/views/email.js @@ -450,12 +450,14 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio } var content = JSON.stringify(result.map(function (mailbox) { + var owner = $scope.owners.find(function (o) { return o.id === mailbox.ownerId; }); // owner may not exist + return { name: mailbox.name, domain: mailbox.domain, - ownerId: mailbox.ownerId, - ownerType: mailbox.ownerType, - active: mailbox.ative, + owner: owner ? owner.display : '', // this meta property is set when we get the user list + ownerType: owner ? owner.type : '', + active: mailbox.active, aliases: mailbox.aliases }; }), null, 2);