diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ChangeLog.ja | 6 | ||||
-rw-r--r-- | libsylph/folder.c | 7 | ||||
-rw-r--r-- | libsylph/mh.c | 4 |
4 files changed, 19 insertions, 4 deletions
@@ -1,5 +1,11 @@ 2007-03-14 + * libsylph/mh.c + libsylph/folder.c: win32: use '/' instead of '\' for folder path + (fixes data format incompatibility between Unix and Win32). + +2007-03-14 + * src/inc.c: inc_remote_account_mail(): enabled automatic junk mail filtering on IMAP. diff --git a/ChangeLog.ja b/ChangeLog.ja index 4465f83b..57e9c4fd 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,5 +1,11 @@ 2007-03-14 + * libsylph/mh.c + libsylph/folder.c: win32: フォルダパスに '\' でなく '/' を使う + ようにした(Unix と Win32 間のデータ非互換性を修正)。 + +2007-03-14 + * src/inc.c: inc_remote_account_mail(): IMAP で迷惑メールの自動 振り分けを有効にした。 diff --git a/libsylph/folder.c b/libsylph/folder.c index 7d0cabd2..7edd391b 100644 --- a/libsylph/folder.c +++ b/libsylph/folder.c @@ -1295,9 +1295,12 @@ static gboolean folder_build_tree(GNode *node, gpointer data) stype = F_VIRTUAL; } else if (!strcmp(attr->name, "name")) name = attr->value; - else if (!strcmp(attr->name, "path")) + else if (!strcmp(attr->name, "path")) { +#ifdef G_OS_WIN32 + subst_char(attr->value, G_DIR_SEPARATOR, '/'); +#endif path = attr->value; - else if (!strcmp(attr->name, "mtime")) + } else if (!strcmp(attr->name, "mtime")) mtime = strtoul(attr->value, NULL, 10); else if (!strcmp(attr->name, "new")) new = atoi(attr->value); diff --git a/libsylph/mh.c b/libsylph/mh.c index b677f9fc..c90bb117 100644 --- a/libsylph/mh.c +++ b/libsylph/mh.c @@ -1068,9 +1068,9 @@ static FolderItem *mh_create_folder(Folder *folder, FolderItem *parent, g_free(fullpath); + /* path is a logical folder path */ if (parent->path) - path = g_strconcat(parent->path, G_DIR_SEPARATOR_S, name, - NULL); + path = g_strconcat(parent->path, "/", name, NULL); else path = g_strdup(name); new_item = folder_item_new(name, path); |