* src/folder.c
Fix the occasionnal item->cache != NULL
assertion failure.
+2005-12-08 [colin] 1.9.100cvs77
+
+ * src/folder.c
+ Fix the occasionnal item->cache != NULL
+ assertion failure.
+
2005-12-08 [colin] 1.9.100cvs76
* src/mimeview.c
( cvs diff -u -r 1.30.2.20 -r 1.30.2.21 src/prefs_toolbar.c; ) > 1.9.100cvs74.patchset
( cvs diff -u -r 1.204.2.70 -r 1.204.2.71 src/prefs_common.c; cvs diff -u -r 1.103.2.37 -r 1.103.2.38 src/prefs_common.h; cvs diff -u -r 1.2.2.16 -r 1.2.2.17 src/gtk/filesel.c; ) > 1.9.100cvs75.patchset
( cvs diff -u -r 1.83.2.52 -r 1.83.2.53 src/mimeview.c; cvs diff -u -r 1.1.2.12 -r 1.1.2.13 src/plugins/pgpcore/sgpgme.c; ) > 1.9.100cvs76.patchset
+( cvs diff -u -r 1.213.2.69 -r 1.213.2.70 src/folder.c; ) > 1.9.100cvs77.patchset
MICRO_VERSION=100
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=76
+EXTRA_VERSION=77
EXTRA_RELEASE=
EXTRA_GTK2_VERSION=
item->total_msgs++;
folder_item_update_freeze();
+
+ if (!item->cache)
+ folder_item_read_cache(item);
+
msgcache_add_msg(item->cache, newmsginfo);
copy_msginfo_flags(flagsource, newmsginfo);
folder_item_update_with_msg(item, F_ITEM_UPDATE_MSGCNT | F_ITEM_UPDATE_CONTENT | F_ITEM_UPDATE_ADDMSG, newmsginfo);