changeset 9125:dc220ff69fb8 HEAD

When mailbox is successfully opened, mark its namespace as being usable.
author Timo Sirainen <tss@iki.fi>
date Thu, 16 Apr 2009 20:09:12 -0400
parents a061db71e166
children 9ff1e79fffab
files src/lib-storage/mail-storage.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/mail-storage.c	Thu Apr 16 19:48:10 2009 -0400
+++ b/src/lib-storage/mail-storage.c	Thu Apr 16 20:09:12 2009 -0400
@@ -455,6 +455,9 @@
 		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;
 }