diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-12-19 14:23:07 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-12-19 14:23:07 +0000 |
commit | 6d490ce129c98caddf5db5601094497a375f47e7 (patch) | |
tree | a45e387037d549bce635947655afd2fb993f8db9 /mailbox/mutil.c | |
parent | 5a30e7b27c8d51e1e8177205ea8b484b2b6c35a2 (diff) | |
download | mailutils-6d490ce129c98caddf5db5601094497a375f47e7.tar.gz mailutils-6d490ce129c98caddf5db5601094497a375f47e7.tar.bz2 |
* NEWS: Update.
* configure.ac (MU_LIB_REMOTE): New substitution variable.
(AC_CONFIG_FILES): Add libproto/remote/Makefile.
* imap4d/copy.c, imap4d/create.c, imap4d/delete.c, imap4d/fetch.c,
imap4d/imap4d.c, imap4d/list.c, imap4d/lsub.c, imap4d/rename.c,
imap4d/subscribe.c, imap4d/unsubscribe.c, imap4d/util.c: Spelling
fixes.
* include/mailutils/cfg.h (mu_cfg_error_count): New variable.
* include/mailutils/gocs.h (struct mu_gocs_mailbox): New member
mailbox_pattern
* include/mailutils/libargp.h (mu_rcfile_lint): New variable.
* include/mailutils/mailbox.h (mu_set_mailbox_pattern): New
function.
(mu_mail_directory): Removed.
(mu_mailbox_url): New function.
* include/mailutils/mutil.h (mu_normalize_mailbox_url): Remove.
* include/mailutils/registrar.h (mu_0_6_registrar_lookup): Remove.
* libargp/common.c: New options --rcfile-lint and
--mailbox-pattern.
* libargp/muinit.c: Handle --rcfile-lint.
* libcfg/common.c: New statement mailbox-pattern
* libmu_scm/mu_mailbox.c (mu-mail-directory): Deprecated.
(mu-user-mailbox-url): New function.
* libproto/remote: New directory.
* libproto/remote/folder.c: New file.
* libproto/remote/mbox.c: New file.
* libproto/remote/.cvsignore: New file.
* libproto/Makefile.am (SUBDIRS): Add remote
* libproto/mbox/folder.c, libproto/mbox/url.c: Indentation and
spelling fixes.
* maidag/Makefile.am (maidag_LDADD): Add MU_LIB_REMOTE.
* maidag/maidag.c: Register mu_remote_mbox_record.
* mailbox/cfg_parser.y (mu_cfg_error_count): New variable.
(mu_cfg_format_error,_mu_cfg_vperror): Increment
mu_cfg_error_count.
* mailbox/debug.c (mu_debug_check_level): Do not mask out
inheritance bit.
* mailbox/gocs.c (mu_gocs_mailbox_init): Set mailbox pattern.
* mailbox/mailbox.c (_create_mailbox): Bugfix.
* mailbox/mbx_default.c (mu_set_mailbox_pattern): New finction.
(mu_set_mail_directory): Rewrite.
(user_mailbox_name): Rewrite.
* mailbox/mutil.c (mu_normalize_mailbox_url): Remove.
* mailbox/registrar.c (mu_0_6_registrar_lookup): Remove.
* guimb/scm/sieve-core.scm (sieve-main): Use mu-user-mailbox-url.
Diffstat (limited to 'mailbox/mutil.c')
-rw-r--r-- | mailbox/mutil.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/mailbox/mutil.c b/mailbox/mutil.c index 304345198..25c8ac2e3 100644 --- a/mailbox/mutil.c +++ b/mailbox/mutil.c @@ -552,35 +552,6 @@ mu_normalize_path (char *path, const char *delim) return path; } -int -mu_normalize_mailbox_url (char **pout, const char *dir) -{ - int len; - - if (!pout) - return MU_ERR_OUT_PTR_NULL; - - len = strlen (dir); - if (dir[len-1] == '/') - *pout = strdup (dir); - else if (strncasecmp (dir, "mbox:", 5) == 0 && dir[len-1] == '=') - { - if (len > 5 && strcmp (dir + len - 5, "user=") == 0) - *pout = strdup (dir); - else - return MU_ERR_BAD_FILENAME; - } - else - { - *pout = malloc (strlen (dir) + 2); - if (*pout) - strcat (strcpy (*pout, dir), "/"); - } - - /* Final check */ - return (*pout == NULL) ? errno : 0; -} - /* Create and open a temporary file. Be very careful about it, since we may be running with extra privilege i.e setgid(). Returns file descriptor of the open file. |