From 4ed1c0fedf33299264a319b2c4e0fe2465ea321b Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 15 Oct 2010 15:09:18 +0100 Subject: [PATCH] lib-storage: Log attempted accesses to nonexistent users' mails with mail_debug=yes. --- src/lib-storage/index/shared/shared-storage.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib-storage/index/shared/shared-storage.c b/src/lib-storage/index/shared/shared-storage.c index 6402dd8ce6..e80f2a8a81 100644 --- a/src/lib-storage/index/shared/shared-storage.c +++ b/src/lib-storage/index/shared/shared-storage.c @@ -268,6 +268,10 @@ int shared_storage_get_namespace(struct mail_namespace **_ns, else { get_nonexistent_user_location(storage, userdomain, location); new_ns->flags |= NAMESPACE_FLAG_UNUSABLE; + if (ns->user->mail_debug) { + i_debug("shared: Tried to access mails of " + "nonexistent user %s", userdomain); + } } ns_set = p_new(user->pool, struct mail_namespace_settings, 1); -- 2.47.3