( cvs diff -u -r 1.36.2.151 -r 1.36.2.152 src/common/utils.c; ) > 3.5.0cvs139.patchset
( cvs diff -u -r 1.22.2.20 -r 1.22.2.21 src/addrbook.c; cvs diff -u -r 1.6.10.18 -r 1.6.10.19 src/addrharvest.c; cvs diff -u -r 1.382.2.480 -r 1.382.2.481 src/compose.c; cvs diff -u -r 1.18.2.26 -r 1.18.2.27 src/jpilot.c; cvs diff -u -r 1.79.2.65 -r 1.79.2.66 src/mh.c; cvs diff -u -r 1.3.2.58 -r 1.3.2.59 src/prefs_themes.c; cvs diff -u -r 1.47.2.48 -r 1.47.2.49 src/procheader.c; cvs diff -u -r 1.49.2.117 -r 1.49.2.118 src/procmime.c; cvs diff -u -r 1.395.2.392 -r 1.395.2.393 src/summaryview.c; cvs diff -u -r 1.36.2.152 -r 1.36.2.153 src/common/utils.c; cvs diff -u -r 1.9.2.23 -r 1.9.2.24 src/gtk/sslcertwindow.c; ) > 3.5.0cvs140.patchset
( cvs diff -u -r 1.2.2.16 -r 1.2.2.17 src/ldapctrl.c; cvs diff -u -r 1.115.2.209 -r 1.115.2.210 src/main.c; cvs diff -u -r 1.3.2.59 -r 1.3.2.60 src/prefs_themes.c; cvs diff -u -r 1.1.2.15 -r 1.1.2.16 src/printing.c; ) > 3.5.0cvs141.patchset
+( cvs diff -u -r 1.179.2.231 -r 1.179.2.232 src/imap.c; ) > 3.5.0cvs142.patchset
static gchar *imap_item_get_path(Folder *folder, FolderItem *item)
{
gchar *folder_path, *path;
-
+ gchar *item_path = NULL;
+
g_return_val_if_fail(folder != NULL, NULL);
g_return_val_if_fail(item != NULL, NULL);
folder_path = imap_folder_get_path(folder);
g_return_val_if_fail(folder_path != NULL, NULL);
+ item_path = g_strdup(item->path);
+
+#ifdef G_OS_WIN32
+ if (strchr(item_path, ':') ||
+ strchr(item_path, '|') ||
+ strchr(item_path, '<') ||
+ strchr(item_path, '>') ||
+ strchr(item_path, '*') ||
+ strchr(item_path, '?') ||
+ strchr(item_path, '#') ||
+ strchr(item_path, ':')
+ ) {
+ g_free(item_path);
+ item_path = g_malloc(strlen(item->path)*3 +1);
+ qp_encode_line(item_path, item->path);
+ }
+#endif
+
if (g_path_is_absolute(folder_path)) {
- if (item->path)
+ if (item_path)
path = g_strconcat(folder_path, G_DIR_SEPARATOR_S,
- item->path, NULL);
+ item_path, NULL);
else
path = g_strdup(folder_path);
} else {
- if (item->path)
+ if (item_path)
path = g_strconcat(get_home_dir(), G_DIR_SEPARATOR_S,
folder_path, G_DIR_SEPARATOR_S,
- item->path, NULL);
+ item_path, NULL);
else
path = g_strconcat(get_home_dir(), G_DIR_SEPARATOR_S,
folder_path, NULL);
}
g_free(folder_path);
+ g_free(item_path);
#ifdef G_OS_WIN32
while (strchr(path, '/'))
*strchr(path, '/') = '\\';