[imp] remember expanded folders
Jan Schneider
jan@horde.org
Tue, 16 Oct 2001 15:41:10 +0200
Zitat von Jan Schneider <jan@horde.org>:
> Zitat von Chuck Hagenbuch <chuck@horde.org>:
>
> > Quoting Jan Schneider <jan@horde.org>:
> >
> > > Uh, you're right. Shame on me. Almost. Not if the user logs out and in.
> > > How about that?
> >
> > That'd require saving the folder tree in the prefs storage, and it can get
>
> > pretty large. Also, you're in all kinds of trouble if the users uses
> another
> >
> > client to change their folders, then logs in to IMP again.
>
> Yes, that make sense.
I thought about it again and perhaps have a solution:
1) Size
We only store the names of the folders that are expanded. Most of the folders
are leafes of the folder tree, only some are branches, t.i. expandable. And
probably not all branches are expanded if you really have a large tree.
We already have the nav_poll preference that stores folder names, so why should
an expanded folders preference not work accordingly.
2) Other clients
We just check if the folder is in the stored preference while building the
tree. That should prevent us from problems if a folder is removed in the
meantime. This is something we also do with nav_poll.
Jan.
::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::