delete mailbox on user delete

This commit is contained in:
Girish Ramakrishnan
2016-05-29 21:02:51 -07:00
parent ec71390d0b
commit a05b6ad78d

View File

@@ -262,6 +262,7 @@ function removeUser(user, auditSource, callback) {
if (error) return callback(new UserError(UserError.INTERNAL_ERROR, error));
eventlog.add(eventlog.ACTION_USER_REMOVE, auditSource, { userId: user.id });
if (user.username) mailboxes.del(user.username, NOOP_CALLBACK);
callback(null);