dovecot-2.0: lib-storage: Log attempted accesses to nonexistent ...

dovecot at dovecot.org dovecot at dovecot.org
Fri Oct 15 17:14:31 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/b277b71fb57f
changeset: 12273:b277b71fb57f
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Oct 15 15:09:18 2010 +0100
description:
lib-storage: Log attempted accesses to nonexistent users' mails with mail_debug=yes.

diffstat:

 src/lib-storage/index/shared/shared-storage.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r 2d6396330099 -r b277b71fb57f src/lib-storage/index/shared/shared-storage.c
--- 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);


More information about the dovecot-cvs mailing list