diff src/lib-storage/mail-user.h @ 8457:f5554ae61732 HEAD

Don't drop useless namespaces automatically while creating a new one. It may free namespaces that are still being used elsewhere. Rather do it explicitly at the beginning of each mailbox sync.
author Timo Sirainen <tss@iki.fi>
date Thu, 20 Nov 2008 19:32:58 +0200
parents 6dd0c6755afe
children 03c418eadc8b
line wrap: on
line diff
--- a/src/lib-storage/mail-user.h	Wed Nov 19 20:09:34 2008 +0200
+++ b/src/lib-storage/mail-user.h	Thu Nov 20 19:32:58 2008 +0200
@@ -38,6 +38,8 @@
 
 /* Add a new namespace to user's namespaces. */
 void mail_user_add_namespace(struct mail_user *user, struct mail_namespace *ns);
+/* Drop autocreated shared namespaces that don't have any "usable" mailboxes. */
+void mail_user_drop_useless_namespaces(struct mail_user *user);
 
 /* Replace ~/ at the beginning of the path with the user's home directory. */
 const char *mail_user_home_expand(struct mail_user *user, const char *path);