From: Timo Sirainen Date: Thu, 1 Sep 2011 03:13:36 +0000 (+0300) Subject: stats: Don't attempt to track stats for autocreated users. X-Git-Tag: 2.1.alpha1~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab94710e5877dc299fab2f7826f24be6fce048c8;p=thirdparty%2Fdovecot%2Fcore.git stats: Don't attempt to track stats for autocreated users. --- diff --git a/src/plugins/stats/stats-plugin.c b/src/plugins/stats/stats-plugin.c index 5ff5efca59..10b67a9445 100644 --- a/src/plugins/stats/stats-plugin.c +++ b/src/plugins/stats/stats-plugin.c @@ -376,6 +376,10 @@ static void stats_user_created(struct mail_user *user) disable stats tracking. */ return; } + if (user->autocreated) { + /* lda / shared user. we're not tracking this one. */ + return; + } if (global_stats_conn == NULL) { path = t_strconcat(user->set->base_dir,