fix mass-cancel problem
authorColin Leroy <colin@colino.net>
Wed, 7 Aug 2002 08:58:43 +0000 (08:58 +0000)
committerColin Leroy <colin@colino.net>
Wed, 7 Aug 2002 08:58:43 +0000 (08:58 +0000)
ChangeLog.claws
configure.in
src/news.c

index aae10ba..472559d 100644 (file)
@@ -1,3 +1,8 @@
+2002-08-07 [colin]     0.8.1claws31
+       
+       * src/news.c
+               fix mass-cancel problem
+
 2002-08-07 [thorsten]  0.8.1claws30
 
        * src/prefs_toolbar.c
index 2ea60f7..5ad875f 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=8
 MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws30
+EXTRA_VERSION=claws31
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 095c12f..e6b5b0e 100644 (file)
@@ -629,22 +629,13 @@ static gint news_get_article_cmd(NNTPSession *session, const gchar *cmd,
 
 static gint news_remove_msg(Folder *folder, FolderItem *item, gint num)
 {
-       MsgInfo * msginfo;
-       gchar * filename;
-       MsgFlags msgflags = { 0, 0 };
+       gchar * dir;
        gint r;
 
-       filename = folder_item_fetch_msg(item, num);
-       if (filename == NULL)
-               return -1;
-
-       msginfo = procheader_parse_file(filename, msgflags, FALSE, FALSE);
-       if (msginfo == NULL)
-               return -1;
-
-       r = news_cancel_article(folder, msginfo);
-
-       procmsg_msginfo_free(msginfo);
+       dir = folder_item_get_path(item);
+       printf("removing %d in %s\n",num,dir);
+       r = remove_numbered_files(dir, num, num);
+       g_free(dir);
 
        return r;
 }