Oops, dont use the url storage path to offset the folder name we're

2001-10-30    <NotZed@Ximian.com>

        * 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
This commit is contained in:
0
2001-10-30 05:23:43 +00:00
committed by Michael Zucci
parent 6e4ce3ebfb
commit 41dea671f8
2 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2001-10-30 <NotZed@Ximian.com>
* 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)

View File

@ -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)) {