Re: Removing folders...



On 2001-02-12 15:00 Christian Bockermann wrote:
> 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.

Before I answer, I would like to settle the nomenclature here so there
is no confusion (this is my nomenclature, I am open for improvements):

- mailbox is a set of mails.
- folder is a set of mailboxes and other folders, forming a tree.

When you write "folder" you mean "mailbox", don't you?

Balsa has somewhat unnecesserily complex structure. First, there is
mailbox and folder configuration data on the disk, in ~/.gnome/balsa
file. Then, the folders&mailboxes are loaded to balsa_app.mailbox_nodes,
possibly scanning the local/IMAP folders and appending respective
MailboxNodes (frankly, I would like to get rid of this structure). Next,
mailbox_nodes are almost directly converted to mblist (GtkCtree), the
widget that shows the mailbox tree. When a mailbox/folder is removed, it
has to be removed from all three places: (a) configuration file, (b)
mailbox_nodes and (c) mblist, or removed from (a) and (b) and recreating
(c) from (b) using mblist_repopulate.

> 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
> [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. 

So it seems the respective section from the configuration file is not
removed.

Your contribution (preferred form: patch, but any contribution will do)
is most welcome.

/Pawel
-- 
Pawel Salek (pawsa@theochem.kth.se) http://www.theochem.kth.se/~pawsa/
Theoretical Chemistry Division, KTH voice: +46 8 790-8202





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