changeset 21405:07d154d23dd4

lib-storage: If namespaces weren't successfully created, don't autoexpunge at deinit.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Sat, 14 Jan 2017 16:11:37 +0200
parents 80faa93d98de
children 69a699cc7149
files src/lib-storage/mail-user.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/mail-user.c	Sat Jan 14 16:12:56 2017 +0200
+++ b/src/lib-storage/mail-user.c	Sat Jan 14 16:11:37 2017 +0200
@@ -166,7 +166,7 @@
 		return;
 	}
 
-	if (user->autoexpunge_enabled)
+	if (user->autoexpunge_enabled && user->namespaces_created)
 		mail_user_autoexpunge(user);
 
 	user->deinitializing = TRUE;