2007-05-02 [paul] 2.9.1cvs36
authorPaul Mangan <paul@claws-mail.org>
Wed, 2 May 2007 07:47:38 +0000 (07:47 +0000)
committerPaul Mangan <paul@claws-mail.org>
Wed, 2 May 2007 07:47:38 +0000 (07:47 +0000)
* src/folder.c
* src/common/defs.h
rename cache and mark files
(data is preserved)

ChangeLog
PATCHSETS
configure.ac
src/common/defs.h
src/folder.c

index 4a289fbd878e656289c9201d09ee3f0112c1057e..a3bd7a5e43d949e32f6c06e4d5cfdb88c1b126cf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-05-02 [paul]      2.9.1cvs36
+
+       * src/folder.c
+       * src/common/defs.h
+               rename cache and mark files
+               (data is preserved)
+
 2007-04-30 [paul]      2.9.1cvs35
 
        * manual/glossary.xml
index bf762696917054f5fa13da4aa4ef125bcc814daf..b6034b45dba411b242554b157645316fd767fae0 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.61.2.62 -r 1.61.2.63 src/account.c;  cvs diff -u -r 1.56.2.51 -r 1.56.2.52 src/pop.c;  cvs diff -u -r 1.105.2.94 -r 1.105.2.95 src/prefs_account.c;  cvs diff -u -r 1.49.2.27 -r 1.49.2.28 src/prefs_account.h;  ) > 2.9.1cvs33.patchset
 ( cvs diff -u -r 1.274.2.187 -r 1.274.2.188 src/mainwindow.c;  cvs diff -u -r 1.654.2.2617 -r 1.654.2.2618 configure.ac;  ) > 2.9.1cvs34.patchset
 ( cvs diff -u -r 1.1.2.16 -r 1.1.2.17 manual/glossary.xml;  cvs diff -u -r 1.1.2.17 -r 1.1.2.18 manual/plugins.xml;  ) > 2.9.1cvs35.patchset
+( cvs diff -u -r 1.213.2.143 -r 1.213.2.144 src/folder.c;  cvs diff -u -r 1.9.2.36 -r 1.9.2.37 src/common/defs.h;  ) > 2.9.1cvs36.patchset
index 31d71ab2f005cb491bdd57626cba169a5c67cd98..df557333ef2ce5c5ad926c8404d3daebcae3aaec 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=35
+EXTRA_VERSION=36
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 63e04892d24b33f35954fdd9906f1489ce884cd1..1f966d362c7feb74e449fda1579c8ede43b32450 100644 (file)
 #define RELEASE_NOTES_FILE     "RELEASE_NOTES"
 #define THEMEINFO_FILE         ".claws_themeinfo"
 #define FOLDER_LIST            "folderlist.xml"
-#define CACHE_FILE             ".sylpheed_claws_cache"
-#define MARK_FILE              ".sylpheed_mark"
+#define OLD_CACHE_FILE         ".sylpheed_claws_cache"
+#define CACHE_FILE             ".claws_cache"
+#define OLD_MARK_FILE          ".sylpheed_mark"
+#define MARK_FILE              ".claws_mark"
 #define CACHE_VERSION          24
 #define MARK_VERSION           2
 
index 438743acdec6f62fd9bc4771ccb530617226af5a..b2a17dc22256c13d1a6703dfcbd2cf03d3963542 100644 (file)
@@ -3434,6 +3434,7 @@ static gchar *folder_item_get_cache_file(FolderItem *item)
 {
        gchar *path;
        gchar *file;
+       gchar *old_file;
 
        g_return_val_if_fail(item != NULL, NULL);
        g_return_val_if_fail(item->path != NULL, NULL);
@@ -3443,6 +3444,11 @@ static gchar *folder_item_get_cache_file(FolderItem *item)
        if (!is_dir_exist(path))
                make_dir_hier(path);
        file = g_strconcat(path, G_DIR_SEPARATOR_S, CACHE_FILE, NULL);
+       old_file = g_strconcat(path, G_DIR_SEPARATOR_S, OLD_CACHE_FILE, NULL);
+
+       if (!is_file_exist(file) && is_file_exist(old_file))
+               move_file(old_file, file, FALSE);
+       g_free(old_file);
        g_free(path);
 
        return file;
@@ -3452,6 +3458,7 @@ static gchar *folder_item_get_mark_file(FolderItem *item)
 {
        gchar *path;
        gchar *file;
+       gchar *old_file;
 
        g_return_val_if_fail(item != NULL, NULL);
        g_return_val_if_fail(item->path != NULL, NULL);
@@ -3461,6 +3468,11 @@ static gchar *folder_item_get_mark_file(FolderItem *item)
        if (!is_dir_exist(path))
                make_dir_hier(path);
        file = g_strconcat(path, G_DIR_SEPARATOR_S, MARK_FILE, NULL);
+       old_file = g_strconcat(path, G_DIR_SEPARATOR_S, OLD_MARK_FILE, NULL);
+
+       if (!is_file_exist(file) && is_file_exist(old_file))
+               move_file(old_file, file, FALSE);
+       g_free(old_file);
        g_free(path);
 
        return file;