[dovecot-cvs] dovecot/src/imap namespace.c,1.15,1.16
tss at dovecot.org
tss at dovecot.org
Thu Nov 16 01:41:03 UTC 2006
Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv28064
Modified Files:
namespace.c
Log Message:
Set HAS_INBOX flag.
Index: namespace.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/namespace.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- namespace.c 6 Mar 2006 18:13:31 -0000 1.15
+++ namespace.c 16 Nov 2006 01:41:01 -0000 1.16
@@ -55,6 +55,8 @@
if (ns->type != NAMESPACE_PRIVATE)
flags |= MAIL_STORAGE_FLAG_SHARED_NAMESPACE;
+ if (ns->inbox)
+ flags |= MAIL_STORAGE_FLAG_HAS_INBOX;
if (prefix == NULL)
prefix = "";
@@ -126,6 +128,12 @@
}
ns = p_new(pool, struct namespace, 1);
+ ns->type = NAMESPACE_PRIVATE;
+ ns->inbox = TRUE;
+ ns->subscriptions = TRUE;
+ ns->prefix = "";
+
+ flags |= MAIL_STORAGE_FLAG_HAS_INBOX;
ns->storage = mail_storage_create_with_data(mail, user, flags,
lock_method);
if (ns->storage == NULL) {
@@ -142,10 +150,6 @@
}
}
- ns->type = NAMESPACE_PRIVATE;
- ns->inbox = TRUE;
- ns->subscriptions = TRUE;
- ns->prefix = "";
namespace_init_storage(ns);
return ns;
}
More information about the dovecot-cvs
mailing list