aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-09-17 05:20:50 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-09-17 05:20:50 +0800
commit1aeb854e50e8f70edd3a1879b627304ddaf1f060 (patch)
tree77d787bfae1f2ccae392fae97908c5fa4501c792 /camel/providers
parente8c9e32de84fd581b7fdb7584f7f360b8da946b7 (diff)
downloadgsoc2013-evolution-1aeb854e50e8f70edd3a1879b627304ddaf1f060.tar
gsoc2013-evolution-1aeb854e50e8f70edd3a1879b627304ddaf1f060.tar.gz
gsoc2013-evolution-1aeb854e50e8f70edd3a1879b627304ddaf1f060.tar.bz2
gsoc2013-evolution-1aeb854e50e8f70edd3a1879b627304ddaf1f060.tar.lz
gsoc2013-evolution-1aeb854e50e8f70edd3a1879b627304ddaf1f060.tar.xz
gsoc2013-evolution-1aeb854e50e8f70edd3a1879b627304ddaf1f060.tar.zst
gsoc2013-evolution-1aeb854e50e8f70edd3a1879b627304ddaf1f060.zip
Implement a temp hack so trunk works until we merge in new-ui-branch.
2003-09-16 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-mbox-folder.c (camel_mbox_folder_get_full_path): Implement a temp hack so trunk works until we merge in new-ui-branch. svn path=/trunk/; revision=22594
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/local/camel-mbox-folder.c25
1 files changed, 15 insertions, 10 deletions
diff --git a/camel/providers/local/camel-mbox-folder.c b/camel/providers/local/camel-mbox-folder.c
index 159ae353d7..3d8b040519 100644
--- a/camel/providers/local/camel-mbox-folder.c
+++ b/camel/providers/local/camel-mbox-folder.c
@@ -162,18 +162,23 @@ camel_mbox_folder_get_full_path (const char *toplevel_dir, const char *full_name
path = g_malloc (strlen (toplevel_dir) + (inptr - full_name) + (4 * subdirs) + 1);
p = g_stpcpy (path, toplevel_dir);
- inptr = full_name;
- while (*inptr != '\0') {
- while (*inptr != '/' && *inptr != '\0')
- *p++ = *inptr++;
-
- if (*inptr == '/') {
- p = g_stpcpy (p, ".sbd/");
- inptr++;
+ if (strcmp (toplevel_dir, "/") == 0) {
+ /* FIXME: temporary hack until we merge new-ui-branch into trunk */
+ p = g_stpcpy (p, full_name);
+ } else {
+ inptr = full_name;
+ while (*inptr != '\0') {
+ while (*inptr != '/' && *inptr != '\0')
+ *p++ = *inptr++;
- /* strip extranaeous '/'s */
- while (*inptr == '/')
+ if (*inptr == '/') {
+ p = g_stpcpy (p, ".sbd/");
inptr++;
+
+ /* strip extranaeous '/'s */
+ while (*inptr == '/')
+ inptr++;
+ }
}
}