0.8.6claws105
authorChristoph Hohmann <reboot@gmx.ch>
Fri, 13 Dec 2002 13:38:56 +0000 (13:38 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Fri, 13 Dec 2002 13:38:56 +0000 (13:38 +0000)
* src/mh.c
        create .mh_sequences file in new MH folders
        (closes feature request [ 523162 ] MH folders should
         get a .mh_sequences)

ChangeLog.claws
configure.in
src/mh.c

index 4cb2354..41d7dc0 100644 (file)
@@ -1,3 +1,10 @@
+2002-12-13 [christoph] 0.8.6claws105
+
+       * src/mh.c
+               create .mh_sequences file in new MH folders
+               (closes feature request [ 523162 ] MH folders should
+                get a .mh_sequences)
+
 2002-12-13 [colin]     0.8.6claws104
 
        * src/summaryview.c
index 411bb69..5f74929 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=6
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws104
+EXTRA_VERSION=claws105
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 5cd4fc2..8ff5fca 100644 (file)
--- a/src/mh.c
+++ b/src/mh.c
@@ -892,6 +892,8 @@ FolderItem *mh_create_folder(Folder *folder, FolderItem *parent,
        gchar *path;
        gchar *fullpath;
        FolderItem *new_item;
+       gchar *mh_sequences_filename;
+       FILE *mh_sequences_file;
 
        g_return_val_if_fail(folder != NULL, NULL);
        g_return_val_if_fail(parent != NULL, NULL);
@@ -919,8 +921,17 @@ FolderItem *mh_create_folder(Folder *folder, FolderItem *parent,
                path = g_strdup(name);
        new_item = folder_item_new(folder, name, path);
        folder_item_append(parent, new_item);
+
        g_free(path);
 
+       path = folder_item_get_path(new_item);
+       mh_sequences_filename = g_strconcat(path, G_DIR_SEPARATOR_S,
+                                           ".mh_sequences", NULL);
+       if ((mh_sequences_file = fopen(mh_sequences_filename, "a+b")) != NULL) {
+               fclose(mh_sequences_file);
+       }
+       g_free(mh_sequences_filename);
+
        return new_item;
 }