aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-tools.c
diff options
context:
space:
mode:
authorSimon Zheng <simon.zheng@sun.com>2006-01-10 16:10:30 +0800
committerHarry Lu <haip@src.gnome.org>2006-01-10 16:10:30 +0800
commit3e82887a540bab50ee5e15eb4bc7e143e5bb34f1 (patch)
treef7a632d980d0b7824fbfb4ce9cf940af1f10a257 /mail/mail-tools.c
parente459ad918e6453c8a0be1415a22311bdeabb06a8 (diff)
downloadgsoc2013-evolution-3e82887a540bab50ee5e15eb4bc7e143e5bb34f1.tar.gz
gsoc2013-evolution-3e82887a540bab50ee5e15eb4bc7e143e5bb34f1.tar.zst
gsoc2013-evolution-3e82887a540bab50ee5e15eb4bc7e143e5bb34f1.zip
Use e_util_mkdir_hier() instead of e_mkdir_hier().
2006-01-10 Simon Zheng <simon.zheng@sun.com> * 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
Diffstat (limited to 'mail/mail-tools.c')
-rw-r--r--mail/mail-tools.c3
1 files changed, 2 insertions, 1 deletions
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 <libedataserver/e-data-server-util.h>
#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);