Mercurial > dovecot > core-2.2
changeset 12273:b277b71fb57f
lib-storage: Log attempted accesses to nonexistent users' mails with mail_debug=yes.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 15 Oct 2010 15:09:18 +0100 |
parents | 2d6396330099 |
children | b0e4edc4d79a |
files | src/lib-storage/index/shared/shared-storage.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/shared/shared-storage.c Fri Oct 15 14:57:36 2010 +0100 +++ b/src/lib-storage/index/shared/shared-storage.c Fri Oct 15 15:09:18 2010 +0100 @@ -268,6 +268,10 @@ 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);