> Thanks!  The plugin works.  As you said, User still can change them in
> prefs, but changes are not preserved after next login.
>
> How to disable changing those prefs per session?  e.g. if I want to set
> left_refresh=120 and want to disable changing this pref per session,
> which file(s) do I need to change?  I checked those files in
> include/options/ and plugins, but could not find out where I should
> change.

include/options/folder.php

    $optvals[SMOPT_GRP_FOLDERLIST][] = array(
        'name'    => 'left_refresh',
        'caption' => _("Auto Refresh Folder List"),
        'type'    => SMOPT_TYPE_STRLIST,
        'refresh' => SMOPT_REFRESH_FOLDERLIST,
        'posvals' => $left_refresh_values
    );

disable these lines. you can put two slashes (//) in front of each line or
wrap them in /* */

/* disabled option
    $optvals[SMOPT_GRP_FOLDERLIST][] = array(
        'name'    => 'left_refresh',
        'caption' => _("Auto Refresh Folder List"),
        'type'    => SMOPT_TYPE_STRLIST,
        'refresh' => SMOPT_REFRESH_FOLDERLIST,
        'posvals' => $left_refresh_values
    );
*/

> Also, I set a folder called spams as a special folder by using
> "user_special_mailboxes" plugin and include it in the forced pref, how
> can I disable changing this pref per session?

plugins/user_special_mailboxes/setup.php
----
  $squirrelmail_plugin_hooks['folders_bottom']['user_special_mailboxes'] =
    'user_special_mailboxes_select';
----

disable these two lines.

i think i can add special hooks into forced_prefs plugin, that disable
some options if plugins use default registration methods and plugins are
loaded in certain order.

P.S. There is no need to cc to my email. I get message from the list.
-- 
Tomas


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to