]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
stats: Don't attempt to track stats for autocreated users.
authorTimo Sirainen <tss@iki.fi>
Thu, 1 Sep 2011 03:13:36 +0000 (06:13 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 1 Sep 2011 03:13:36 +0000 (06:13 +0300)
src/plugins/stats/stats-plugin.c

index 5ff5efca5937266ec7017a3573f20bb3ea96ca6d..10b67a9445b0308fab767b51906c8e232fd24426 100644 (file)
@@ -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,