allows creation of mbox folder item from any files.
authorHoà Viêt Dinh <dinh.viet.hoa@free.fr>
Fri, 9 Nov 2001 20:57:12 +0000 (20:57 +0000)
committerHoà Viêt Dinh <dinh.viet.hoa@free.fr>
Fri, 9 Nov 2001 20:57:12 +0000 (20:57 +0000)
ChangeLog.claws
src/folderview.c

index 8b726f8..85eac95 100644 (file)
@@ -1,3 +1,8 @@
+2001-11-09 [hoa]       0.6.5.claws4
+       
+       * src/folderview.c
+               allows creation of mbox folder item from any files.
+
 2001-11-07 [alfons]    0.6.5.claws3
        
        * src/utils.c
index 51345fb..280f183 100644 (file)
@@ -1531,11 +1531,13 @@ static void folderview_new_folder_cb(FolderView *folderview, guint action,
                                  _("NewFolder"));
        if (!new_folder) return;
 
-       if (strchr(new_folder, G_DIR_SEPARATOR) != NULL) {
-               alertpanel_error(_("`%c' can't be included in folder name."),
-                                G_DIR_SEPARATOR);
-               g_free(new_folder);
-               return;
+       if (item->folder->type != F_MBOX) {
+               if (strchr(new_folder, G_DIR_SEPARATOR) != NULL) {
+                       alertpanel_error(_("`%c' can't be included in folder name."),
+                                        G_DIR_SEPARATOR);
+                       g_free(new_folder);
+                       return;
+               }
        }
 
        /* find whether the directory already exists */