aboutsummaryrefslogtreecommitdiff
path: root/libsylph
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-03-14 10:51:49 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-03-14 10:51:49 +0000
commitdbd7b17de343dd5900d475844ba8a8c861bce8c9 (patch)
tree8e7052af2c556e585023c5ff15bfc830ce05ee16 /libsylph
parent7925290517e4ec3f4836a2c6d387e623c7a3a011 (diff)
fixed duplicated subfolders when rebuilding folder tree on Win32 while settings were shared between Win32 and Unix.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1049 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r--libsylph/mh.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/libsylph/mh.c b/libsylph/mh.c
index aff7c2ee..99e87cb6 100644
--- a/libsylph/mh.c
+++ b/libsylph/mh.c
@@ -1,6 +1,6 @@
/*
* LibSylph -- E-Mail client library
- * Copyright (C) 1999-2005 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2006 Hiroyuki Yamamoto
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -1269,6 +1269,14 @@ static gboolean mh_remove_missing_folder_items_func(GNode *node, gpointer data)
item = FOLDER_ITEM(node->data);
+#if 0
+ if (item->path && strchr(item->path, '/')) {
+ debug_print("folder '%s' includes Unix path separator. removing...\n", item->path);
+ folder_item_remove(item);
+ return FALSE;
+ }
+#endif
+
path = folder_item_get_path(item);
if (!is_dir_exist(path)) {
debug_print("folder '%s' not found. removing...\n", path);
@@ -1402,7 +1410,11 @@ static void mh_scan_tree_recursive(FolderItem *item)
node = item->node;
for (node = node->children; node != NULL; node = node->next) {
FolderItem *cur_item = FOLDER_ITEM(node->data);
+#ifdef G_OS_WIN32
+ if (!path_cmp(cur_item->path, utf8entry)) {
+#else
if (!strcmp2(cur_item->path, utf8entry)) {
+#endif
new_item = cur_item;
break;
}