comparison src/lib-storage/index/shared/shared-storage.c @ 8901:703214a10642 HEAD

acl: Don't try to create dovecot-acl-list file for unknown users' auto-created namespaces.
author Timo Sirainen <tss@iki.fi>
date Thu, 02 Apr 2009 19:09:32 -0400
parents 9b3bb65b808e
children 2b6107437df3
comparison
equal deleted inserted replaced
8900:87c23fa4278e 8901:703214a10642
232 ns->sep = _storage->ns->sep; 232 ns->sep = _storage->ns->sep;
233 233
234 location = t_str_new(256); 234 location = t_str_new(256);
235 if (ret > 0) 235 if (ret > 0)
236 var_expand(location, storage->location, tab); 236 var_expand(location, storage->location, tab);
237 else 237 else {
238 get_nonexisting_user_location(storage, userdomain, location); 238 get_nonexisting_user_location(storage, userdomain, location);
239 ns->flags |= NAMESPACE_FLAG_UNUSABLE;
240 }
239 if (mail_storage_create(ns, NULL, str_c(location), _storage->flags, 241 if (mail_storage_create(ns, NULL, str_c(location), _storage->flags,
240 _storage->lock_method, &error) < 0) { 242 _storage->lock_method, &error) < 0) {
241 mail_storage_set_critical(_storage, "Namespace '%s': %s", 243 mail_storage_set_critical(_storage, "Namespace '%s': %s",
242 ns->prefix, error); 244 ns->prefix, error);
243 mail_namespace_destroy(ns); 245 mail_namespace_destroy(ns);