* src/folder.c
fix folder update before adding MsgInfo to cache
in add_msginfo_to_cache()
* src/procmsg.c
remove old call to folder_item_update() that is no
longer required
+2003-12-16 [christoph] 0.9.7claws47
+
+ * src/folder.c
+ fix folder update before adding MsgInfo to cache
+ in add_msginfo_to_cache()
+
+ * src/procmsg.c
+ remove old call to folder_item_update() that is no
+ longer required
+
2003-12-16 [christoph] 0.9.7claws46
* src/main.c
2003-12-16 [christoph] 0.9.7claws46
* src/main.c
MICRO_VERSION=7
INTERFACE_AGE=0
BINARY_AGE=0
MICRO_VERSION=7
INTERFACE_AGE=0
BINARY_AGE=0
if test $EXTRA_VERSION -eq 0; then
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
else
if test $EXTRA_VERSION -eq 0; then
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
else
procmsg_msginfo_set_flags(dest,
~dest->flags.perm_flags & perm_flags,
~dest->flags.tmp_flags & tmp_flags);
procmsg_msginfo_set_flags(dest,
~dest->flags.perm_flags & perm_flags,
~dest->flags.tmp_flags & tmp_flags);
-
- folder_item_update(dest->folder, F_ITEM_UPDATE_MSGCNT | F_ITEM_UPDATE_CONTENT);
}
static void add_msginfo_to_cache(FolderItem *item, MsgInfo *newmsginfo, MsgInfo *flagsource)
}
static void add_msginfo_to_cache(FolderItem *item, MsgInfo *newmsginfo, MsgInfo *flagsource)
item->unreadmarked_msgs++;
item->total_msgs++;
item->unreadmarked_msgs++;
item->total_msgs++;
- copy_msginfo_flags(flagsource, newmsginfo);
-
+ folder_item_update_freeze();
msgcache_add_msg(item->cache, newmsginfo);
msgcache_add_msg(item->cache, newmsginfo);
+ copy_msginfo_flags(flagsource, newmsginfo);
+ folder_item_update(item, F_ITEM_UPDATE_CONTENT);
+ folder_item_update_thaw();
}
static void remove_msginfo_from_cache(FolderItem *item, MsgInfo *msginfo)
}
static void remove_msginfo_from_cache(FolderItem *item, MsgInfo *msginfo)
procmsg_msginfo_free(msginfo); /* refcnt-- */
}
}
procmsg_msginfo_free(msginfo); /* refcnt-- */
}
}
- folder_item_update(outbox, TRUE);