From e061b1ccf25cfd82788d02711fb102aeca81167a Mon Sep 17 00:00:00 2001 From: Christoph Hohmann Date: Fri, 13 Dec 2002 13:38:56 +0000 Subject: [PATCH] 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) --- ChangeLog.claws | 7 +++++++ configure.in | 2 +- src/mh.c | 11 +++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/ChangeLog.claws b/ChangeLog.claws index 4cb2354bb..41d7dc07c 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -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 diff --git a/configure.in b/configure.in index 411bb69ad..5f74929b2 100644 --- a/configure.in +++ b/configure.in @@ -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 diff --git a/src/mh.c b/src/mh.c index 5cd4fc249..8ff5fcaaa 100644 --- 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; } -- 2.25.1