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)
This commit is contained in:
Christoph Hohmann 2002-12-13 13:38:56 +00:00
parent 569995ece5
commit e061b1ccf2
3 changed files with 19 additions and 1 deletions

View 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

View 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

View file

@ -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;
}