[horde] Horde 5.0.1 Display Empty Trash Link

Matthew Moore matthew at jpci.net
Wed Nov 14 14:04:19 UTC 2012


I upgraded from Horde/IMP H3 to 5.0.1. All seems to be working ok but I cant get the Empty Trash Folder to display and enable it so that the emails deleted from the Inbox are moved straight to trash.

I copied the section // *** Delete/Move Messages Preferences *** into a new file in the imp/config/prefs.d/11-deleted.php then modified the appropriate sections like -

// should messages be moved to a trash mailbox instead of just marking
// them as deleted?
$_prefs['use_trash'] = array(
    'value' => 1,
    'type' => 'checkbox',
    'desc' => _("When deleting messages, move them to your Trash mailbox instead of marking them as deleted?"),
    'on_change' => function() {
        if ($trash_mbox = IMP_Mailbox::getPref('trash_folder')) {
        if ($GLOBALS['prefs']->getValue('use_trash') &&
            !$GLOBALS['prefs']->getValue('trash_folder')) {
            $GLOBALS['notification']->push(_("You have activated move to Trash but no Trash mailbox is defined. You will be unable to delete messages until you set a Trash mailbox in the preferences."), 'horde.warning');

// display the 'Empty Trash' link in the menubar?
$_prefs['empty_trash_menu'] = array(
    'value' => 1,
    'type' => 'checkbox',
    'desc' => _("Display the \"Empty Trash\" link in the menubar?"),
    'requires' => array('use_trash'),
    'requires_nolock' => array('use_trash'),
    'suppress' => function() {
        return !$GLOBALS['injector']->getInstance('IMP_Factory_Imap')->create()->access(IMP_Imap::ACCESS_TRASH);

Logged out and in again and its still not working. I then modified the prefs.php anyway and enabled the options but again nothing is happening like it should.

Anyone have any ideas?




JPC InfoNet Limited

Registered in England No.: 2983145

Registered Office:
Unit 2
Bryer Ash Business Park
Wiltshire BA14 8AW

t: +44 (0)1225 776 555
f: +44 (0)1225 774 299

Find us on the web at www.jpci.net - A Head Start for your business

The information transmitted in and/or with this email is intended only for
the person or entity to which it is addressed and may contain confidential
and/or privileged material.

Statements and opinions expressed in this e-mail may not represent those
of the company. Any review, retransmission, dissemination or other use of,
or taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender immediately and delete the
material from any computer.

More information about the horde mailing list