aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-component.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-11-19 14:17:56 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-11-19 14:17:56 +0800
commitc05d3716731fc810a21b60f81c6da695747abe4d (patch)
tree1cf1d3f5ceee8e0912a3e82a4ed55d120aa5648c /mail/mail-component.c
parent736f94d96e9a4c5eee7dcb551fce5d7bd4d6c3c4 (diff)
downloadgsoc2013-evolution-c05d3716731fc810a21b60f81c6da695747abe4d.tar
gsoc2013-evolution-c05d3716731fc810a21b60f81c6da695747abe4d.tar.gz
gsoc2013-evolution-c05d3716731fc810a21b60f81c6da695747abe4d.tar.bz2
gsoc2013-evolution-c05d3716731fc810a21b60f81c6da695747abe4d.tar.lz
gsoc2013-evolution-c05d3716731fc810a21b60f81c6da695747abe4d.tar.xz
gsoc2013-evolution-c05d3716731fc810a21b60f81c6da695747abe4d.tar.zst
gsoc2013-evolution-c05d3716731fc810a21b60f81c6da695747abe4d.zip
if we're setting the fragment, strip leading /'s.
2003-11-19 Not Zed <NotZed@Ximian.com> * 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
Diffstat (limited to 'mail/mail-component.c')
-rw-r--r--mail/mail-component.c4
1 files changed, 2 insertions, 2 deletions
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);