aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog4
-rw-r--r--camel/providers/local/camel-mbox-folder.c25
2 files changed, 19 insertions, 10 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index b1f422cf9d..be87be5a29 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,9 @@
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.
+
* camel-stream-filter.c (do_flush): Don't warning about how we
haven't written anything to the stream, this is not an
error. fflush() doesn't care if you try to fflush() a stream
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++;
+ }
}
}