[imp] Turn off Accounts and/or filter button in menu bar

amy.rich@tufts.edu amy.rich at tufts.edu
Thu May 12 19:42:19 PDT 2005


Has anyone had any luck turning off the Accounts or Filter buttons in the menu
bar?  Even though I've set:

$_prefs['fetchmail_menu'] = array(
    'value' => 0,
    'locked' => true,

$_prefs['fetchmail_popup'] = array(
    'value' => 0,
    'locked' => true,

The fetchmail menu (aka Accounts) still appears.  If I remove the section of
code from lib/IMP.php that adds the menu item, it goes away though.  According
to that code, it should be checking fetchmail_menu first, then
fetchmail_popup.  I have BOTH of these set to false and locked, but Accounts
is still there and when you click on it, opens a new window.  According to
this code from lib/IMP.php, that shouldn't happen.  The only way I've been
nable to get rid of the menu option is to remove this code entirely:

if ($prefs->getValue('fetchmail_menu')) {
    if ($prefs->getValue('fetchmail_popup')) {
        $menu->add('#', _("Acco_unts"), 'fetchmail.png', null, 'fetchmail', 'window.open(\'' . Horde::applicationUrl('fetchmail.php'). '\', \'fetchmail\', \'toolbar=no,location=no,status=yes,scrollbars=yes,resizable=yes,width=300,height=450,left=100,top=100\'); return false;');
    } else {
        $menu->add(Horde::applicationUrl('fetchmail.php'), _("Acco_unts"), 'fetchmail.png');
    }
}

I also experimented with the Filters setting/icon, and had the same issue.


More information about the imp mailing list