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 1c3c70b7f55de74626d3ca34a520b21f21afdf10..5fddb0154a8f6a211608705c862130fcb74c5b4c 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 0f88588691fd0e3296aa02f2b4d4477195b40b69..325d7ab1a24df79eddb0691450d6acb0e14675c3 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 ca10f0e70d5444d36a70d94881db9c59b6c0ab0d..8023d9c8ad428925dcbcc02f2df4224f5f8890d1 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,