Rewrite namespace support
* imap4d/imap4d.c (imap4d_homedir) (modify_homedir, mailbox_mode): Remove. (imap4d_srv_param): New configuration statement "namespace" Remove statements: homedir, personal-namespace, shared-namespace, other-mailbox-mode, shared-mailbox-mode. * imap4d/imap4d.h (imap4d_homedir, modify_homedir) (mailbox_mode): Remove. (namespace, namespace_init_session, util_getfullpath) (namespace_getfullpath, namespace_checkfullpath): Remove. (namespace_prefix, namespace): New structs. (namespace_lookup, namespace_translate_name) (namespace_get_url, translate_delim): New protos. * imap4d/list.c (refinfo): Revamp. (list_fun): Rewrite. * imap4d/namespace.c: Rewrite from scratch. * imap4d/append.c: Use new namespace functions. * imap4d/util.c (util_getfullpath): Remove. * imap4d/copy.c: Likewise. * imap4d/create.c: Likewise. * imap4d/delete.c: Likewise. * imap4d/quota.c: Likewise. * imap4d/rename.c: Likewise. * imap4d/select.c: Likewise. * imap4d/status.c: Likewise. * imap4d/tests/atlocal.in (make_config): New function. * imap4d/tests/testsuite.at (IMAP4D_CONFIG) (IMAP4D_RUN): New functions. * imap4d/tests/list.at: Update tests 16, 17, 18, 19 * imap4d/tests/IDEF0955.at: Use IMAP4D_RUN. * imap4d/tests/IDEF0956.at: Likewise. * imap4d/tests/append00.at: Likewise. * imap4d/tests/append01.at: Likewise. * imap4d/tests/create01.at: Likewise. * imap4d/tests/create02.at: Likewise.
Showing
22 changed files
with
755 additions
and
441 deletions
-
Please register or sign in to post a comment