From 8cc3a0e4dc9d3664f7b4e54d03d1c5b1936eb2da Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 16 Apr 2001 17:09:38 +0000 Subject: Remove the EXTRA_GNOME_CFLAGS include. 2001-04-16 Jeffrey Stedfast * Makefile.am: Remove the EXTRA_GNOME_CFLAGS include. * camel-store.c (camel_mkdir_hier): Convenience function that it seems a number of camel-store implementations used gal for. * providers/nntp/camel-nntp-store.c (ensure_news_dir_exists): Lets not depend on gal for just e_mkdir_hier() - use camel_mkdir_hier() instead. * providers/nntp/camel-imap-store.c: Lets not depend on gal for just e_mkdir_hier() - use camel_mkdir_hier() instead. * camel-session.c (camel_session_get_storage_path): Don't depend on e_mkdir_heir() anymore, use the CamelStore version. * camel-folder-search.h: Removed gal dependency, why was this even there in the first place? * providers/imap/camel-imap-folder.c: Don't need gal/util/e-util.h here, so remove it. * string-utils.c (strstrcase): New function, well more like old function brought back to life so we don't have to depend on gal. * providers/imap/camel-imap-store.c (imap_store_setup_online): Use strstrcase rather than e_strstrcase so we don't depend on gal. (get_unread_online): Same here. * providers/smtp/camel-smtp-transport.c (smtp_helo): Use strstrcase. svn path=/trunk/; revision=9383 --- camel/camel-session.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'camel/camel-session.c') diff --git a/camel/camel-session.c b/camel/camel-session.c index 6550dd9ee1..9399364bde 100644 --- a/camel/camel-session.c +++ b/camel/camel-session.c @@ -42,7 +42,6 @@ #include "string-utils.h" #include "camel-url.h" #include "hash-table-utils.h" -#include #include "camel-vee-store.h" #include "camel-private.h" @@ -429,6 +428,7 @@ camel_session_get_service_connected (CamelSession *session, return svc; } + /** * camel_session_get_storage_path: * @session: session object @@ -449,22 +449,22 @@ camel_session_get_storage_path (CamelSession *session, CamelService *service, CamelException *ex) { char *path, *p; - + p = camel_service_get_path (service); path = g_strdup_printf ("%s/%s", session->storage_path, p); g_free (p); - + if (access (path, F_OK) == 0) return path; - - if (e_mkdir_hier (path, S_IRWXU) == -1) { + + if (camel_mkdir_hier (path, S_IRWXU) == -1) { camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, _("Could not create directory %s:\n%s"), path, g_strerror (errno)); g_free (path); return NULL; } - + return path; } -- cgit v1.2.3