dovecot-1.3: When mailbox is successfully opened, mark its names...

dovecot at dovecot.org dovecot at dovecot.org
Fri Apr 17 03:09:26 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.3/rev/dc220ff69fb8
changeset: 9125:dc220ff69fb8
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Apr 16 20:09:12 2009 -0400
description:
When mailbox is successfully opened, mark its namespace as being usable.

diffstat:

1 file changed, 3 insertions(+)
src/lib-storage/mail-storage.c |    3 +++

diffs (13 lines):

diff -r a061db71e166 -r dc220ff69fb8 src/lib-storage/mail-storage.c
--- 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 @@ struct mailbox *mailbox_open(struct mail
 		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;
 }
 


More information about the dovecot-cvs mailing list