diff options
Diffstat (limited to 'mail/mail-tools.c')
-rw-r--r-- | mail/mail-tools.c | 3 |
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); |