0.9.3claws67
authorChristoph Hohmann <reboot@gmx.ch>
Mon, 28 Jul 2003 21:48:21 +0000 (21:48 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Mon, 28 Jul 2003 21:48:21 +0000 (21:48 +0000)
* src/procmsg.c
        fix sync of procmsg_get_message_file_list

ChangeLog.claws
configure.ac
src/procmsg.c

index edd6ca09fbbe68d5601cdd11d05c8c5ecddbcbfc..bb3a582228640e0b8208cebf1593f795974ef536 100644 (file)
@@ -1,3 +1,8 @@
+2003-07-28 [christoph] 0.9.3claws67
+
+       * src/procmsg.c
+               fix sync of procmsg_get_message_file_list
+
 2003-07-28 [christoph] 0.9.3claws66
 
        * sync with 0.9.3cvs14
index fbd513396e2b472a599530a2a0b351933f67f0cc..09928f933ceb311f1fcd3372d8d1a76acf541de4 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=3
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=66
+EXTRA_VERSION=67
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index 075318e530a50d08bce16d2fad8163c430c41e3c..0a015fc1f5ba66f489fbf12e3710b0e5a2c319df 100644 (file)
@@ -382,27 +382,31 @@ gchar *procmsg_get_message_file(MsgInfo *msginfo)
        return filename;
 }
 
-GSList *procmsg_get_message_file_list(MsgInfoList *mlist)
+GSList *procmsg_get_message_file_list(GSList *mlist)
 {
-       GSList *file_list = NULL;
-       MsgInfo *msginfo;
-       gchar *file;
-
-       while (mlist != NULL) {
-               msginfo = (MsgInfo *)mlist->data;
-               file = procmsg_get_message_file(msginfo);
-               if (!file) {
-                       slist_free_strings(file_list);
-                       g_slist_free(file_list);
-                       return NULL;
-               }
-               file_list = g_slist_prepend(file_list, file);
-               mlist = mlist->next;
-       }
-
-       file_list = g_slist_reverse(file_list);
-
-       return file_list;
+        GSList *file_list = NULL;
+        MsgInfo *msginfo;
+        MsgFileInfo *fileinfo;
+        gchar *file;
+
+        while (mlist != NULL) {
+                msginfo = (MsgInfo *)mlist->data;
+                file = procmsg_get_message_file(msginfo);
+                if (!file) {
+                        procmsg_message_file_list_free(file_list);
+                        return NULL;
+                }
+                fileinfo = g_new(MsgFileInfo, 1);
+                fileinfo->file = file;
+                fileinfo->flags = g_new(MsgFlags, 1);
+                *fileinfo->flags = msginfo->flags;
+                file_list = g_slist_prepend(file_list, fileinfo);
+                mlist = mlist->next;
+        }
+
+        file_list = g_slist_reverse(file_list);
+
+        return file_list;
 }
 
 void procmsg_message_file_list_free(MsgInfoList *file_list)