From: Timo Sirainen Date: Fri, 17 Apr 2009 00:09:12 +0000 (-0400) Subject: When mailbox is successfully opened, mark its namespace as being usable. X-Git-Tag: 2.0.alpha1~927 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5a077c8c1666edb34479cca42105449c8f89ffc2;p=thirdparty%2Fdovecot%2Fcore.git When mailbox is successfully opened, mark its namespace as being usable. --HG-- branch : HEAD --- diff --git a/src/lib-storage/mail-storage.c b/src/lib-storage/mail-storage.c index 86ed2c4174..600999ab63 100644 --- a/src/lib-storage/mail-storage.c +++ b/src/lib-storage/mail-storage.c @@ -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; }