bugfix for filtering
authorHoà Viêt Dinh <dinh.viet.hoa@free.fr>
Sat, 8 Dec 2001 17:41:56 +0000 (17:41 +0000)
committerHoà Viêt Dinh <dinh.viet.hoa@free.fr>
Sat, 8 Dec 2001 17:41:56 +0000 (17:41 +0000)
ChangeLog.claws
configure.in
src/folder.c

index 1c3c70b..5fddb01 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-08 [hoa]       0.6.5claws64
+
+       * src/folder.c
+               fixed a bug about the .processing folder name while filtering
+
 2001-12-07 [alfons]    0.6.5claws63
 
        * src/folderview.c 
index 0f88588..325d7ab 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=6
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws63
+EXTRA_VERSION=claws64
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl
index ca10f0e..8023d9c 100644 (file)
@@ -43,6 +43,9 @@
 #include "prefs_account.h"
 #include "mbox_folder.h"
 
+#include <sys/stat.h>
+#include <sys/types.h>
+
 static GList *folder_list = NULL;
 
 static void folder_init                (Folder         *folder,
@@ -1558,18 +1561,24 @@ static void folder_create_processing_folder(void)
        Folder     *tmpparent;
        FolderItem *tmpfolder;
        gchar      *tmpname;
+       struct stat s;
 
        tmpparent = folder_get_default_folder();
        g_assert(tmpparent);
        debug_print("tmpparentroot %s\n", LOCAL_FOLDER(tmpparent)->rootpath);
-       tmpname = g_strconcat(get_home_dir(), G_DIR_SEPARATOR_S,
-                             LOCAL_FOLDER(tmpparent)->rootpath,
-                             G_DIR_SEPARATOR_S, PROCESSING_FOLDER,
-                             NULL);
+       if (LOCAL_FOLDER(tmpparent)->rootpath[0] == '/')
+               tmpname = g_strconcat(LOCAL_FOLDER(tmpparent)->rootpath,
+                                     G_DIR_SEPARATOR_S, PROCESSING_FOLDER,
+                                     NULL);
+       else
+               tmpname = g_strconcat(get_home_dir(), G_DIR_SEPARATOR_S,
+                                     LOCAL_FOLDER(tmpparent)->rootpath,
+                                     G_DIR_SEPARATOR_S, PROCESSING_FOLDER,
+                                     NULL);
 
        processing_folder = folder_new(F_MH, "PROCESSING", LOCAL_FOLDER(tmpparent)->rootpath);
        g_assert(processing_folder);
-                             
+
        if (!is_dir_exist(tmpname)) {
                debug_print("*TMP* creating %s\n", tmpname);
                processing_folder_item = processing_folder->create_folder(processing_folder,