diff options
author | Not Zed <NotZed@Ximian.com> | 2004-02-05 16:18:35 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-02-05 16:18:35 +0800 |
commit | 9e58087307421a11742b41003edda9a7b949bd31 (patch) | |
tree | 9753cd12d5b830632fb30c59f7564acace2a439a /camel/providers/local/camel-local-store.c | |
parent | a7f64b5c163c2a5651637e2441e48fa5d96451d0 (diff) | |
download | gsoc2013-evolution-9e58087307421a11742b41003edda9a7b949bd31.tar.gz gsoc2013-evolution-9e58087307421a11742b41003edda9a7b949bd31.tar.zst gsoc2013-evolution-9e58087307421a11742b41003edda9a7b949bd31.zip |
rename .cmeta file too, and fix the recovery order.
2004-02-05 Not Zed <NotZed@Ximian.com>
* providers/local/camel-mbox-store.c (rename_folder): rename
.cmeta file too, and fix the recovery order.
* providers/local/camel-local-store.c (rename_folder): rename the
.cmeta file too.
* providers/local/camel-local-folder.c (local_rename): fix this to
use local_get_full_path stuff.
* camel-store.c (camel_store_rename_folder): fix umr's comparing
old and new names.
svn path=/trunk/; revision=24630
Diffstat (limited to 'camel/providers/local/camel-local-store.c')
-rw-r--r-- | camel/providers/local/camel-local-store.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/camel/providers/local/camel-local-store.c b/camel/providers/local/camel-local-store.c index a0eaf9d68f..09b644a318 100644 --- a/camel/providers/local/camel-local-store.c +++ b/camel/providers/local/camel-local-store.c @@ -339,6 +339,9 @@ rename_folder(CamelStore *store, const char *old, const char *new, CamelExceptio if (xrename(old, new, path, ".ev-summary", TRUE, ex)) goto summary_failed; + if (xrename(old, new, path, ".cmeta", TRUE, ex)) + goto cmeta_failed; + if (xrename(old, new, path, "", FALSE, ex)) goto base_failed; @@ -350,7 +353,12 @@ rename_folder(CamelStore *store, const char *old, const char *new, CamelExceptio return; + /* The (f)utility of this recovery effort is quesitonable */ + base_failed: + xrename(new, old, path, ".cmeta", TRUE, ex); + +cmeta_failed: xrename(new, old, path, ".ev-summary", TRUE, ex); summary_failed: |