The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Horde prefs to Always display all folders

Discussion in 'E-mail Discussions' started by jimlongo, May 23, 2014.

  1. jimlongo

    jimlongo Well-Known Member

    Joined:
    Mar 20, 2008
    Messages:
    145
    Likes Received:
    2
    Trophy Points:
    18
    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);
        }
    );
    
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. jimlongo

    jimlongo Well-Known Member

    Joined:
    Mar 20, 2008
    Messages:
    145
    Likes Received:
    2
    Trophy Points:
    18
    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
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  5. jimlongo

    jimlongo Well-Known Member

    Joined:
    Mar 20, 2008
    Messages:
    145
    Likes Received:
    2
    Trophy Points:
    18
    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.
     
Loading...

Share This Page