From 5a077c8c1666edb34479cca42105449c8f89ffc2 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 16 Apr 2009 20:09:12 -0400 Subject: [PATCH] When mailbox is successfully opened, mark its namespace as being usable. --HG-- branch : HEAD --- src/lib-storage/mail-storage.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.47.3