* Recursively parse the mailbox structure to build the navigation tree.
/*
* Recursively parse the mailbox structure to build the navigation tree.
@@ -197,6+195,11 @@ function buildMailboxTree ($box, $settings, $icon_theme_path, $parent_node=-1) {
}
}
}
}
+ // Add any extra output that may have been added by plugins, etc
+ //
+ if (!empty($box['ExtraOutput']))
+ $end .= $box['ExtraOutput'];
+
$span = '';
$spanend = '';
if ($settings['useSpecialFolderColor'] && $box['IsSpecial']) {
$span = '';
$spanend = '';
if ($settings['useSpecialFolderColor'] && $box['IsSpecial']) {
@@ -207,11+210,6 @@ function buildMailboxTree ($box, $settings, $icon_theme_path, $parent_node=-1) {
$spanend = '</span>';
}
$spanend = '</span>';
}
- /**
- * NOTE: Plugins would horribly break this advanced tree, so we are
- * going to skip that part altogether.
- */
-
$name = str_replace(
array(' ','<','>'),
array(' ','<','>'),
$name = str_replace(
array(' ','<','>'),
array(' ','<','>'),
@@ -247,6+245,7 @@ function buildMailboxTree ($box, $settings, $icon_theme_path, $parent_node=-1) {
}
return $out;
}
return $out;
+//FIXME: somewhere above, need to insert the left_main_after_each_folder hook, or if no plugin hooks allowed in templates, at least the output from that hook (but I think it might be impossible not to have the hook here in this fxn