]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
When mailbox is successfully opened, mark its namespace as being usable.
authorTimo Sirainen <tss@iki.fi>
Fri, 17 Apr 2009 00:09:12 +0000 (20:09 -0400)
committerTimo Sirainen <tss@iki.fi>
Fri, 17 Apr 2009 00:09:12 +0000 (20:09 -0400)
--HG--
branch : HEAD

src/lib-storage/mail-storage.c

index 86ed2c4174077b996f98eb007ff1483b7fff2069..600999ab631c8691a07c8db1acb9802debfed9d1 100644 (file)
@@ -455,6 +455,9 @@ struct mailbox *mailbox_open(struct mail_storage **_storage, const char *name,
                if (hook_mailbox_opened != NULL && box != NULL)
                        hook_mailbox_opened(box);
        } T_END;
+
+       if (box != NULL)
+               box->storage->ns->flags |= NAMESPACE_FLAG_USABLE;
        return box;
 }