From 8258a8c7776564198f7d7d31e8bd11c4ddd7b765 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 17 Feb 2022 16:24:29 -0800 Subject: [PATCH] mailbox: export the real owner info --- src/views/email.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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);