* src/folder.c
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Wed, 13 Nov 2002 21:14:05 +0000 (21:14 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Wed, 13 Nov 2002 21:14:05 +0000 (21:14 +0000)
folder_item_close(): only mark messages unread
when a folder has new messages

ChangeLog.claws
configure.in
src/folder.c

index 1509a60a2a42df71a8524fee081e97d574fd6b88..1e5f371e5ab33117343b73727d5470cbc0c7078d 100644 (file)
@@ -1,8 +1,14 @@
-2002-11-13 [keith] 0.8.5claws143
+2002-11-13 [alfons]    0.8.5claws144
 
-    * src/imap.c
-        Fix problem moving or copying between
-        IMAP folders
+       * src/folder.c
+               folder_item_close(): only mark messages unread
+               when a folder has new messages 
+
+2002-11-13 [keith]     0.8.5claws143
+
+       * src/imap.c
+               Fix problem moving or copying between
+               IMAP folders
 
 2002-11-13 [colin]     0.8.5claws142
 
index 4930bff4af419135b34380652cd3cb484cc16269..4010567b67228858e34d7b306191f674efcd4ba9 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws143
+EXTRA_VERSION=claws144
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 24544fcf408133381964e5186148d660247bc95e..bf8c67bd79775e7ab9f652eb4e03843692758c6c 100644 (file)
@@ -968,17 +968,19 @@ void folder_item_close(FolderItem *item)
        GSList *mlist, *cur;
        
        g_return_if_fail(item != NULL);
-       
-       mlist = folder_item_get_msg_list(item);
-       for (cur = mlist ; cur != NULL ; cur = cur->next) {
-               MsgInfo * msginfo;
 
-               msginfo = (MsgInfo *) cur->data;
-               if (MSG_IS_NEW(msginfo->flags))
-                       procmsg_msginfo_unset_flags(msginfo, MSG_NEW, 0);
-               procmsg_msginfo_free(msginfo);
-       }
-       g_slist_free(mlist);
+       if (item->new) {
+               mlist = folder_item_get_msg_list(item);
+               for (cur = mlist ; cur != NULL ; cur = cur->next) {
+                       MsgInfo * msginfo;
+
+                       msginfo = (MsgInfo *) cur->data;
+                       if (MSG_IS_NEW(msginfo->flags))
+                               procmsg_msginfo_unset_flags(msginfo, MSG_NEW, 0);
+                       procmsg_msginfo_free(msginfo);
+               }
+               g_slist_free(mlist);
+       }               
 
        folder_item_write_cache(item);