mail-namespace.h revision c58906589cafc32df4c04ffbef933baadd3f2276
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen /* FIXME: we should support multiple storages in one namespace */
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainenint mail_namespaces_init(pool_t pool, const char *user,
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainenstruct mail_namespace *mail_namespaces_init_empty(pool_t pool);
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainenvoid mail_namespaces_deinit(struct mail_namespace **namespaces);
bca919b207e27d0d08b431bdb0f2ac099ef8b512Timo Sirainenconst char *mail_namespace_fix_sep(struct mail_namespace *ns, const char *name);
bca919b207e27d0d08b431bdb0f2ac099ef8b512Timo Sirainenmail_namespace_find(struct mail_namespace *namespaces, const char **mailbox);
bca919b207e27d0d08b431bdb0f2ac099ef8b512Timo Sirainenmail_namespace_find_visible(struct mail_namespace *namespaces,
bca919b207e27d0d08b431bdb0f2ac099ef8b512Timo Sirainen const char **mailbox);
bca919b207e27d0d08b431bdb0f2ac099ef8b512Timo Sirainenmail_namespace_find_prefix(struct mail_namespace *namespaces,
bca919b207e27d0d08b431bdb0f2ac099ef8b512Timo Sirainen const char *prefix);