]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Log attempted accesses to nonexistent users' mails with mail_debug=yes.
authorTimo Sirainen <tss@iki.fi>
Fri, 15 Oct 2010 14:09:18 +0000 (15:09 +0100)
committerTimo Sirainen <tss@iki.fi>
Fri, 15 Oct 2010 14:09:18 +0000 (15:09 +0100)
src/lib-storage/index/shared/shared-storage.c

index 6402dd8ce68bc80445a42311d7c85b3a770b5256..e80f2a8a8145b4c64be8662b8aef0169ae47d486 100644 (file)
@@ -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);