From 3e82887a540bab50ee5e15eb4bc7e143e5bb34f1 Mon Sep 17 00:00:00 2001 From: Simon Zheng Date: Tue, 10 Jan 2006 08:10:30 +0000 Subject: Use e_util_mkdir_hier() instead of e_mkdir_hier(). 2006-01-10 Simon Zheng * em-composer-utils.c: * em-folder-tree-model.c: (em_folder_tree_model_save_state): * em-format-html.c: * em-migrate.c: (cp_r), (em_migrate_folder), (em_migrate_pop_uid_caches_1_4), (em_migrate_folder_expand_state_1_4), (em_migrate_folder_view_settings_1_4), (em_migrate_imap_cmeta_1_4), (em_migrate_1_4), (emm_setup_initial), (em_migrate): * em-popup.c: * em-utils.c: (em_utils_save_part_to_file): * mail-component.c: (mail_component_init): * mail-config.c: * mail-folder-cache.c: * mail-mt.c: * mail-ops.c: * mail-tools.c: (mail_tool_get_local_movemail_path): Use e_util_mkdir_hier() instead of e_mkdir_hier(). Use e_util_strstrcase() instead of e_strstrcasea(). use e_strftime() in evolution-data-server/ libedataserver/e-data-server-util.c instead of the copy in evolution/e-util/e-util.c. use e_filename_make_safe() in evolution-data-server/ libedataserver/e-data-server-util.c instead of the copy in evolution/e-util/e-util.c. use e_utf8_strftime() in evolution-data-server/ libedataserver/e-data-server-util.c instead of the copy in evolution/e-util/e-util.c. svn path=/trunk/; revision=31118 --- mail/mail-tools.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mail/mail-tools.c') diff --git a/mail/mail-tools.c b/mail/mail-tools.c index 0ae2445fb8..cedf4a01c7 100644 --- a/mail/mail-tools.c +++ b/mail/mail-tools.c @@ -47,6 +47,7 @@ #include "filter/filter-option.h" #include "filter/filter-input.h" +#include #include "em-utils.h" #include "em-vfolder-context.h" #include "em-vfolder-rule.h" @@ -115,7 +116,7 @@ mail_tool_get_local_movemail_path (const unsigned char *uri, CamelException *ex) *c = '_'; path = g_strdup_printf("%s/mail/spool", mail_component_peek_base_directory(NULL)); - if (g_stat(path, &st) == -1 && camel_mkdir(path, 0777) == -1) { + if (g_stat(path, &st) == -1 && e_util_mkdir_hier(path, 0777) == -1) { camel_exception_setv(ex, CAMEL_EXCEPTION_SYSTEM, _("Could not create spool directory `%s': %s"), path, g_strerror(errno)); g_free(path); -- cgit