6 * Implementation of RFC 2369 for SquirrelMail.
7 * When viewing a message from a mailinglist complying with this RFC,
8 * this plugin displays a menu which gives the user a choice of mailinglist
9 * commands such as (un)subscribe, help and list archives.
11 * @copyright © 1999-2007 The SquirrelMail Project Team
12 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
15 * @subpackage listcommands
19 * Initialize the listcommands plugin
21 function squirrelmail_plugin_init_listcommands () {
22 global $squirrelmail_plugin_hooks;
24 $squirrelmail_plugin_hooks['template_construct_read_headers.tpl']['listcommands'] = 'plugin_listcommands_menu';
25 $squirrelmail_plugin_hooks['optpage_register_block']['listcommands'] = 'plugin_listcommands_optpage_register_block';
30 * Main function added to read_body_header
32 function plugin_listcommands_menu() {
33 include_once(SM_PATH
. 'plugins/listcommands/functions.php');
34 return plugin_listcommands_menu_do();
39 * Show mailing list management option section on options page
41 function plugin_listcommands_optpage_register_block() {
42 include_once(SM_PATH
. 'plugins/listcommands/functions.php');
43 plugin_listcommands_optpage_register_block_do();