From 41dea671f83b9e5914b91cb5f57e8a2268898b52 Mon Sep 17 00:00:00 2001 From: 0 Date: Tue, 30 Oct 2001 05:23:43 +0000 Subject: Oops, dont use the url storage path to offset the folder name we're 2001-10-30 * mail-local.c (mls_rename_folder): Oops, dont use the url storage path to offset the folder name we're renaming/opening, etc. svn path=/trunk/; revision=14431 --- mail/ChangeLog | 3 +++ mail/mail-local.c | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index 43c4b36c42..756de97834 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,8 @@ 2001-10-30 + * mail-local.c (mls_rename_folder): Oops, dont use the url storage + path to offset the folder name we're renaming/opening, etc. + * subscribe-dialog.c (fe_cancel_op_foreach): Argh!!! Dont free the async op data here, the async op is still running and will access it! Just try to cancel it and mark it as cancelled (id == -1) diff --git a/mail/mail-local.c b/mail/mail-local.c index 9267878757..b072f90795 100644 --- a/mail/mail-local.c +++ b/mail/mail-local.c @@ -413,6 +413,8 @@ mlf_rename(CamelFolder *folder, const char *new) if (mlf->real_folder) { char *mbox = g_strdup_printf("%s/%s", new, mlf->meta->name); + d(printf("renaming real folder to %s\n", mbox)); + camel_folder_rename(mlf->real_folder, mbox); g_free(mbox); } @@ -850,8 +852,8 @@ mls_rename_folder(CamelStore *store, const char *old_name, const char *new_name, return; } - oldname = g_strdup_printf("%s%s/%s", ((CamelService *)store)->url->path, old_name, meta->name); - newname = g_strdup_printf("%s%s/%s", ((CamelService *)store)->url->path, new_name, meta->name); + oldname = g_strdup_printf("%s/%s", old_name, meta->name); + newname = g_strdup_printf("%s/%s", new_name, meta->name); camel_store_rename_folder(real_store, oldname, newname, ex); if (!camel_exception_is_set(ex)) { -- cgit