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 4cb2354bbaae60cf7aab6b68271a7b3d69539fa3..41d7dc07ccc48d034ef7752fc6f2f80421f2a489 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 411bb69ad716cbb3470caa7394fd7c795526656c..5f74929b218ccfb0b1dea1889a3746868ce03812 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 5cd4fc24963689e69503c062614ce18a2c8cf6c8..8ff5fcaaa60168e818c564736f2da792fc4e8723 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;
 }