[imp] question about requiring subscription to IMAP folders
Michael M Slusarz
slusarz at horde.org
Tue Oct 25 19:48:31 UTC 2011
Quoting francis picabia <fpicabia at gmail.com>:
> Good afternoon,
>
> I am running Horde 4 and IMP 5.
>
> Right now, our users must subscribe to their subfolders
> before they will see them.
>
> I wonder if this is necessary. I see this in the user FAQ on the wiki:
>
> http://wiki.horde.org/FAQ/User/IMP?referrer=FAQ%2FUser#toc9
>
> I would like to achieve the scenario described in the second paragraph:
>
> "If your site's IMP configuration allows you to use multiple folders
> but does not require you to subscribe to the ones you wish to access,
> you will always see all of your folders in IMP's folder lists."
>
> I searched for where to do this and do not see a clear answer. But I
> have a guess.
>
> In imp/config/prefs.php I see:
>
> $_prefs['subscribe'] = array(
> 'value' => 1,
> 'type' => 'checkbox',
> 'desc' => _("Use IMAP folder subscriptions?")
> );
>
> Should I try another value in there such as 0, would it cause IMAP
> folders to be not allowed at all, or would it simply remove the need
> to subscribe?
A false value for subscribe causes IMP to completely ignore IMAP
subscription status on the server.
> Would this be picked up if I made a prefs.local.php containing:
>
> $_prefs['subscribe'] = array(
> 'value' => 0,
> 'type' => 'checkbox',
> 'desc' => _("Use IMAP folder subscriptions?")
> );
You probably want this instead:
$_prefs['subscribe']['value'] = 0;
$_prefs['subscribe']['locked'] = true;
This prevents users from changing the value. And you should set only
individual properties of the array, rather than overwriting the array,
since this method will ensure that any changes made to the prefs.php
file in the future OTHER than the values you have overwritten will be
used.
michael
___________________________________
Michael Slusarz [slusarz at horde.org]
More information about the imp
mailing list