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

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


details:   http://hg.dovecot.org/dovecot-1.2/rev/d7847f03ae65
changeset: 8957:d7847f03ae65
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 9619fbd698d5 -r d7847f03ae65 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
@@ -480,6 +480,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