allows creation of mbox folder item from any files.
[claws.git] / src / folderview.c
index 51345fbb16b3b0afc0251d7882f00d5c7b56fd9a..280f183051c4c335916b2e9f862bea2476bf8e48 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 */