diff --git a/lib/user-handler.js b/lib/user-handler.js index e4560a34..23f062ed 100644 --- a/lib/user-handler.js +++ b/lib/user-handler.js @@ -132,6 +132,9 @@ class UserHandler { return false; } + // Add addrview to projection as we will need it down further for + // matching the right wildcard partial address. + projection['addrview'] = true; let partialWildcards = tools.getWildcardAddresses(username, domain); let query = {