Horde prefs to Always display all folders

jimlongo

Well-Known Member
Mar 20, 2008
288
24
68
The new version of Horde while cosmetically better has really taken a step backwards in functionality.
And the documentation on their website is so hard to find as to be almost useless.


How to set the following prefs?
Always display all folders. Even the user prefs within Horde don't seem to work to always display all folders, the user must select it from the Folder Actions every time.
I've found the following instructions somewhere, add this to /usr/local/cpanel/base/horde/imp/config/prefs.php (although that file says not to edit it and put it in prefs.d/prefs.php so I tried both) to no avail.
Code:
$_prefs['nav_expanded'] = array(
    'value' => 1,
    'type' => 'enum',
    'enum' => array(
        0 => _("No"),
        1 => _("Yes"),
        2 => _("Remember the last view")
    ),
    'desc' => _("Expand the entire folder tree by default in the folders view?"),
    'suppress' => function() {
        return !$GLOBALS['injector']->getInstance('IMP_Imap')->access(IMP_Imap::ACCESS_FOLDERS);
    }
);
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

Could you provide a screenshot of how you prefer it to look, and how it looks normally, so we can understand exactly what feature you are referring to?

Thank you.
 

jimlongo

Well-Known Member
Mar 20, 2008
288
24
68
Sure when the client logs in it normally looks like this . . .

Screen Shot 2014-05-23 at 14.39.40.png


I would prefer that it look like this . . .
Screen Shot 2014-05-23 at 14.40.05.png




There is a preference which seems to have no effect at Prefs>Mail>Folder Display
Screen Shot 2014-05-23 at 14.42.05.png
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

The additional IMAP folders you are referring to show up after I deselect the "Use IMAP mailbox subscriptions?" option that you referenced. Have you tried disabling this option and refreshing your browser?

Thank you.
 

jimlongo

Well-Known Member
Mar 20, 2008
288
24
68
Thanks Michael, that does work.

Add this in the /usr/local/cpanel/base/horde/imp/config/prefs.d/10-webmail.php will globalize that
=> changes value from 1 to 0

$_prefs['subscribe'] = array(
'value' => 0,
'type' => 'checkbox',
'desc' => _("Use IMAP mailbox subscriptions?"),
'on_change' => function() {
$GLOBALS['injector']->getInstance('IMP_Imap_Tree')->init();
}
);



Thanks.