Removing folders...



Hi !

On 2001.02.11 20:47:39 +0100 Jules Bean wrote:
> > Therefore I wanted to know if there is a special list for discussing
> > strategies of implementing new features in balsa or is this list the
> > right way to discuss things like that ?
> 
> This list is the right place.
> 
> Discuss away.

OK, here I go :
I inspected the code which is executed, when a folder is deleted. There
are 2 possible ways for a folder to be deleted. The first is just to
delete the entry from the list and keep the folder on disk, the second
is to delete both.
When you delete a folder in balsa-1.1.1 the entry is removed from the
mblist but the GUI is not updated. I added a line for this to be done :

----begin-patch-----
RCS file: /cvs/gnome/balsa/src/mailbox-conf.c,v
retrieving revision 1.94
diff -u -r1.94 mailbox-conf.c
--- src/mailbox-conf.c	2001/01/22 19:26:28	1.94
+++ src/mailbox-conf.c	2001/02/11 13:22:31
@@ -226,6 +226,7 @@
 	    g_node_destroy(gnode); /* this will remove mbnode */
 	}
     }
+    balsa_mblist_repopulate(BALSA_MBLIST(balsa_app.mblist));
 }
 /*
----end-patch---

So now, when you remove a folder from the list, it is removed from the
GUI, too. Restarting balsa brings the folder back to life again. 

My knowledge of balsa is very little, so I don't really know, how to do
"removing" a folder. This thing of course does only occur when removing
the folder
from list only. 
A possible solution (my favorite) would be to mark the file on some way,
and add an attribute like visible=0 or 1 to each mblist-item. Therefore
removing
folder from list-only, would mean to set visible=0 and perhaps rename
the file
(would perhaps lead to difficulties with procmail?)

Any suggestions ?

-- 
Bye,
	Chris

-- 
Bis denn,
	Chris





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]