From: Timo Sirainen Date: Fri, 15 Oct 2010 14:09:18 +0000 (+0100) Subject: lib-storage: Log attempted accesses to nonexistent users' mails with mail_debug=yes. X-Git-Tag: 2.0.6~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ed1c0fedf33299264a319b2c4e0fe2465ea321b;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: Log attempted accesses to nonexistent users' mails with mail_debug=yes. --- 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);