fix bug where unsubscribing a newsgroup would destroy (most of the) filtering rules
authorPaul Mangan <paul@claws-mail.org>
Mon, 15 Mar 2004 07:43:31 +0000 (07:43 +0000)
committerPaul Mangan <paul@claws-mail.org>
Mon, 15 Mar 2004 07:43:31 +0000 (07:43 +0000)
ChangeLog.claws
configure.ac
src/folderview.c

index 774b596..00f3941 100644 (file)
@@ -1,3 +1,9 @@
+2004-02-15 [paul]      0.9.10claws15
+
+       * src/folderview.c
+               fix bug where unsubscribing a newsgroup would destroy
+               (most of the) filtering rules
+
 2004-02-15 [paul]      0.9.10claws14
 
        * src/folderview.c
index b107e8e..5b3fed1 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=10
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=14
+EXTRA_VERSION=15
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index b2b676f..ccf4337 100644 (file)
@@ -2373,6 +2373,7 @@ static void folderview_rm_news_group_cb(FolderView *folderview, guint action,
        FolderItem *item;
        gchar *name;
        gchar *message;
+       gchar *old_id;
        AlertValue avalue;
 
        if (!folderview->selected) return;
@@ -2383,6 +2384,8 @@ static void folderview_rm_news_group_cb(FolderView *folderview, guint action,
        g_return_if_fail(FOLDER_TYPE(item->folder) == F_NEWS);
        g_return_if_fail(item->folder->account != NULL);
 
+       old_id = folder_item_get_identifier(item);
+
        name = trim_string(item->path, 32);
        message = g_strdup_printf(_("Really delete newsgroup `%s'?"), name);
        avalue = alertpanel(_("Delete newsgroup"), message,
@@ -2399,7 +2402,8 @@ static void folderview_rm_news_group_cb(FolderView *folderview, guint action,
        folder_item_remove(item);
        folder_write_list();
        
-       prefs_filtering_delete_path(name);
+       prefs_filtering_delete_path(old_id);
+       g_free(old_id);
 }
 
 static void folderview_rm_news_server_cb(FolderView *folderview, guint action,