2006-10-01 [colin] 2.5.2cvs32
authorColin Leroy <colin@colino.net>
Sun, 1 Oct 2006 10:45:27 +0000 (10:45 +0000)
committerColin Leroy <colin@colino.net>
Sun, 1 Oct 2006 10:45:27 +0000 (10:45 +0000)
* src/mh.c
* src/msgcache.c
fflush() caches and mh_sequences before
fclose()ing

ChangeLog
PATCHSETS
configure.ac
src/mh.c
src/msgcache.c

index 406d83b..845554e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-10-01 [colin]     2.5.2cvs32
+
+       * src/mh.c
+       * src/msgcache.c
+               fflush() caches and mh_sequences before
+               fclose()ing
+
 2006-10-01 [colin]     2.5.2cvs31
 
        * src/msgcache.c
index 5e87f35..8768ef1 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.213.2.117 -r 1.213.2.118 src/folder.c;  cvs diff -u -r 1.79.2.43 -r 1.79.2.44 src/mh.c;  ) > 2.5.2cvs29.patchset
 ( cvs diff -u -r 1.115.2.107 -r 1.115.2.108 src/main.c;  ) > 2.5.2cvs30.patchset
 ( cvs diff -u -r 1.16.2.41 -r 1.16.2.42 src/msgcache.c;  ) > 2.5.2cvs31.patchset
+( cvs diff -u -r 1.79.2.44 -r 1.79.2.45 src/mh.c;  cvs diff -u -r 1.16.2.42 -r 1.16.2.43 src/msgcache.c;  ) > 2.5.2cvs32.patchset
index 200c600..e3bf1fe 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=5
 MICRO_VERSION=2
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=31
+EXTRA_VERSION=32
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index bbed7e8..30d63c1 100644 (file)
--- a/src/mh.c
+++ b/src/mh.c
@@ -1392,7 +1392,9 @@ static void mh_write_sequences(FolderItem *item, gboolean remove_unseen)
                        fclose(mh_sequences_old_fp);
                }
                
+               fflush(mh_sequences_new_fp);
                fclose(mh_sequences_new_fp);
+
                g_rename(mh_sequences_new, mh_sequences_old);
                g_free(sequence);
                procmsg_msg_list_free(msglist);
index 00a3059..dbbe5c6 100644 (file)
@@ -1024,6 +1024,10 @@ gint msgcache_write(const gchar *cache_file, const gchar *mark_file, MsgCache *c
        } else {
                g_hash_table_foreach(cache->msgnum_table, msgcache_write_func, (gpointer)&write_fps);
        }
+       
+       fflush(write_fps.cache_fp);
+       fflush(write_fps.mark_fp);
+
        fclose(write_fps.cache_fp);
        fclose(write_fps.mark_fp);