[Commits] [SCM] claws branch, master, updated. 3.13.0-86-gb1094bd
ticho at claws-mail.org
ticho at claws-mail.org
Wed Nov 25 22:12:12 CET 2015
The branch, master has been updated
via b1094bd737bb4b945041a89578b472f4d8c14547 (commit)
from f642378609010a00238113e98d2acc97a5ac7647 (commit)
Summary of changes:
src/imap.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
- Log -----------------------------------------------------------------
commit b1094bd737bb4b945041a89578b472f4d8c14547
Author: Andrej Kacian <ticho at claws-mail.org>
Date: Wed Nov 25 22:10:25 2015 +0100
Fix folder renaming for IMAP on Windows.
Fix done by only using platform-specific dir separator when
dealing with filesystem paths, not when dealing with internal
folder paths.
diff --git a/src/imap.c b/src/imap.c
index a149797..96c7c3f 100644
--- a/src/imap.c
+++ b/src/imap.c
@@ -3048,7 +3048,7 @@ static gchar *imap_encode_unsafe_chars(const gchar *str)
return NULL;
ret = g_malloc(3*strlen(str)+1);
o_ret = ret;
- for (i = str; *i; i++) {
+ for (i = (gchar *)str; *i; i++) {
switch(*i) {
case ':':
case '|':
@@ -3323,9 +3323,9 @@ static gint imap_rename_folder(Folder *folder, FolderItem *item,
g_free(real_oldpath);
return -1;
}
- if (strchr(item->path, G_DIR_SEPARATOR)) {
+ if (strchr(item->path, '/')) {
dirpath = g_path_get_dirname(item->path);
- newpath = g_strconcat(dirpath, G_DIR_SEPARATOR_S, name, NULL);
+ newpath = g_strconcat(dirpath, "/", name, NULL);
g_free(dirpath);
} else
newpath = g_strdup(name);
@@ -4464,11 +4464,11 @@ static gboolean imap_rename_folder_func(GNode *node, gpointer data)
}
base = item->path + oldpathlen;
- while (*base == G_DIR_SEPARATOR) base++;
+ while (*base == '/') base++;
if (*base == '\0')
new_itempath = g_strdup(newpath);
else
- new_itempath = g_strconcat(newpath, G_DIR_SEPARATOR_S, base,
+ new_itempath = g_strconcat(newpath, "/", base,
NULL);
real_oldpath = imap_get_real_path(session, IMAP_FOLDER(item->folder), item->path, &ok);
@@ -4604,7 +4604,7 @@ gint imap_get_num_list(Folder *folder, FolderItem *_item, GSList **msgnum_list,
if (FOLDER_ITEM(item)->path)
statusbar_print_all(_("Scanning folder %s%c%s..."),
FOLDER_ITEM(item)->folder->name,
- G_DIR_SEPARATOR,
+ '/',
FOLDER_ITEM(item)->path);
else
statusbar_print_all(_("Scanning folder %s..."),
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list