]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: If namespaces weren't successfully created, don't autoexpunge at deinit.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sat, 14 Jan 2017 14:11:37 +0000 (16:11 +0200)
committerGitLab <gitlab@git.dovecot.net>
Sun, 15 Jan 2017 17:24:06 +0000 (19:24 +0200)
src/lib-storage/mail-user.c

index 553b90d868c2cb46191d38a32c49d527b14a647e..334ed30c7b8fc48049ba0a29757a6ff5bb5f163e 100644 (file)
@@ -176,7 +176,7 @@ void mail_user_unref(struct mail_user **_user)
                return;
        }
 
-       if (user->autoexpunge_enabled)
+       if (user->autoexpunge_enabled && user->namespaces_created)
                mail_user_autoexpunge(user);
 
        user->deinitializing = TRUE;