0.9.7claws47
authorChristoph Hohmann <reboot@gmx.ch>
Tue, 16 Dec 2003 21:05:32 +0000 (21:05 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Tue, 16 Dec 2003 21:05:32 +0000 (21:05 +0000)
* 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

ChangeLog.claws
configure.ac
src/folder.c
src/procmsg.c

index 7d9bc444278c4be702abad9576c66ea822442bc9..adeef39af12b515dd21420c2298c2010428cac9c 100644 (file)
@@ -1,3 +1,13 @@
+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
index c041d70fb26eb7a3b75bcd36ec36b09e8794f4c9..8cc2159df0ed5912d397d36251edbfb8bad2dfff 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=7
 INTERFACE_AGE=0
 BINARY_AGE=0
 MICRO_VERSION=7
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=46
+EXTRA_VERSION=47
 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
index a7f965af4f90f89222aa16bcf9330d4e48e019d3..4638d8f33bfd94fc598a6ef3ef2e135b5320b12e 100644 (file)
@@ -1839,8 +1839,6 @@ static void copy_msginfo_flags(MsgInfo *source, MsgInfo *dest)
        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)
@@ -1854,9 +1852,11 @@ static void add_msginfo_to_cache(FolderItem *item, MsgInfo *newmsginfo, MsgInfo
                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)
index e6fa6bd182f578e106420c3f0a856a75e888be5c..22b50d4d7bf836e58d7086825d072a3588889b89 100644 (file)
@@ -750,7 +750,6 @@ gint procmsg_save_to_outbox(FolderItem *outbox, const gchar *file,
                        procmsg_msginfo_free(msginfo);          /* refcnt-- */
                }       
        }
                        procmsg_msginfo_free(msginfo);          /* refcnt-- */
                }       
        }
-       folder_item_update(outbox, TRUE);
 
        return 0;
 }
 
        return 0;
 }