[imp] Problem with showing unsubscribed folders
Michael M Slusarz
slusarz at bigworm.colorado.edu
Mon Mar 8 16:17:32 PST 2004
Quoting Jan Kuipers <jrkuipers at lauwerscollege.nl>:
> Citeren Jan Kuipers <jrkuipers at lauwerscollege.nl>:
>
>> Regarding HEAD:
>>
>> I noticed, when showing unsuscribed folders, the tree is _not_ restricted to
>> 'mail/' ($servers['imap']['folders']) as I want to, but shows _all_
>> files and
>> directories in and below the home directory of the user!
>> fyi: running uw-imap 2002e
[snip]
> the prefix 'mail/' is ignored when switching to unsubscribed view.
> Directories
> and files outside mail/ are shown, but not marked as unsubscribed. When I set
> namespace to 'mail/' (folders to ''), Directories and files outside mail/ are
> also shown, but _are_ marked as unsubscribed.
> Switching to subscribed view only shows the mailfolders in mail/ (as
> it should
> be)
Ahhh - I found the problem. I am using the (faster) imap_list()/imap_lsub()
function sto generate the list of subscribed/nsubscribed mailboxes without
taking into account the value of 'folders' from servers.php. This only
matters
on UW-IMAP (since it begins listing, by default, at the users home directory)
so that's why I never caught my mistake (I use courier). This should be fixed
now.
michael
______________________________________________
Michael Slusarz [slusarz at bigworm.colorado.edu]
The University of Colorado at Boulder
More information about the imp
mailing list