From c05d3716731fc810a21b60f81c6da695747abe4d Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 19 Nov 2003 06:17:56 +0000 Subject: if we're setting the fragment, strip leading /'s. 2003-11-19 Not Zed * mail-component.c (em_uri_to_camel): if we're setting the fragment, strip leading /'s. * mail-tools.c (mail_tool_get_meta_data) (mail_tool_delete_meta_data, meta_data_key): old stuff killed. (mail_tool_uri_to_folder): handle email: uri's specially. this is a bit of a hack, the filter callbacks should manage this itself since filters are the only bits which use those uri's. svn path=/trunk/; revision=23437 --- mail/mail-component.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mail/mail-component.c') diff --git a/mail/mail-component.c b/mail/mail-component.c index db65ced743..a9263ea678 100644 --- a/mail/mail-component.c +++ b/mail/mail-component.c @@ -734,7 +734,7 @@ char *em_uri_to_camel(const char *euri) g_assert(eurl->host != NULL); if (strcmp(eurl->user, "local") == 0 && strcmp(eurl->host, "local") == 0) { - curi = g_strdup_printf("mbox:%s/.evolution/mail/local#%s", g_get_home_dir(), eurl->path); + curi = g_strdup_printf("mbox:%s/.evolution/mail/local#%s", g_get_home_dir(), eurl->path[0]=='/'?eurl->path+1:eurl->path); camel_url_free(eurl); return curi; } @@ -755,7 +755,7 @@ char *em_uri_to_camel(const char *euri) curl = camel_url_new(service->url, NULL); if (provider->url_flags & CAMEL_URL_FRAGMENT_IS_PATH) - camel_url_set_fragment(curl, eurl->path); + camel_url_set_fragment(curl, eurl->path[0]=='/'?eurl->path+1:eurl->path); else camel_url_set_path(curl, eurl->path); -- cgit v1.2.3