[imp] icons for folders - no Javascript
Henry Kwong
honda at zip.com.au
Thu Aug 12 01:16:16 PDT 2004
Hello,
To make changing folders a one click process (and so I can go to folders other
than Inbox using my PocketPC's IE - the change folder Javascript doesnt work in
Pocket IE) - I have done a some reverse engineering and made a hack to list
each folder on top of the menu.
Its not the neatest but it works for me so here it is:
in horde/imp/config/menu.php - add these lines:
$mailboxes = IMP::flist(false);
foreach ($mailboxes as $mbox) {
global $registry;
$dir = $registry->getParam('graphics');
$val = urlencode(htmlentities($mbox['val']));
$label = $mbox['label'];
$label2 = str_replace(' ', ' ', htmlspecialchars($label));
$_menu[] = array(
'url' =>
"mailbox.php?newmail_popup=no&".session_name()."=".session_id()."&mailbox=$val",
'text' => "$label2",
'icon' => "$dir/folders.gif",
'icon_path' => '',
'target' => '',
'onclick' => ''
);
}
Please post comments to the list.
HK
More information about the imp
mailing list