Skip to content

Commit

Permalink
lib-storage: If namespaces weren't successfully created, don't autoex…
Browse files Browse the repository at this point in the history
…punge at deinit.
  • Loading branch information
sirainen authored and GitLab committed Jan 15, 2017
1 parent 71bfb0a commit fd4130e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-storage/mail-user.c
Expand Up @@ -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;
Expand Down

0 comments on commit fd4130e

Please sign in to comment.