From 1c70e0090563eb9acfbcd59dcecbc833154d3747 Mon Sep 17 00:00:00 2001 From: NotZed Date: Sat, 19 Feb 2000 04:12:40 +0000 Subject: Added exception to call, and fixed caller. 2000-02-18 NotZed * providers/mbox/camel-mbox-search.h (camel_mbox_folder_search_by_expression): Added exception to call, and fixed caller. * providers/mbox/camel-mbox-search.c (camel_mbox_folder_search_by_expression): Major changes, to use the sexp evaluator from filter/filter-sexp.c to implement the searching. (func_body_contains): Changed to support multiple strings in 1 command (results or'd together) * url-util.c (g_url_new): Fixed a typo (colon == 0 isn't right), and made it so full url's are absolute pathed (Dan, this is how it has to work!). Also, always include a path part, even if it is an empty string. 2000-02-16 NotZed * providers/mbox/Makefile.am (libcamelmbox_la_LIBADD): Added libfilter to link line (temporarily?). Required for filter-sexp. svn path=/trunk/; revision=1855 --- camel/url-util.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'camel/url-util.c') diff --git a/camel/url-util.c b/camel/url-util.c index da47e041d9..37a433888d 100644 --- a/camel/url-util.c +++ b/camel/url-util.c @@ -124,10 +124,15 @@ Gurl *g_url_new (const gchar* url_string) g_url->port = NULL; } - if (slash && *(slash + 1)) - g_url->path = g_strdup (slash); - else - g_url->path = NULL; + /* setup a fallback, if relative, then empty string, else + it will be from root */ + if (slash == NULL) { + slash = "/"; + } + if (slash && *slash && g_url->protocol == NULL) + slash++; + + g_url->path = g_strdup (slash); return g_url; } -- cgit v1.2.3