73ee43b1 |
1 | <?php |
519f07d7 |
2 | |
3 | /** |
4 | * setup.php |
5 | * |
6c84ba1e |
6 | * Copyright (c) 1999-2005 The SquirrelMail Project Team |
519f07d7 |
7 | * Licensed under the GNU GPL. For full terms see the file COPYING. |
73ee43b1 |
8 | * |
9 | * Implementation of RFC 2369 for SquirrelMail. |
10 | * When viewing a message from a mailinglist complying with this RFC, |
11 | * this plugin displays a menu which gives the user a choice of mailinglist |
12 | * commands such as (un)subscribe, help and list archives. |
13 | * |
793566f0 |
14 | * @version $Id$ |
ea5f4b8e |
15 | * @package plugins |
16 | * @subpackage listcommands |
73ee43b1 |
17 | */ |
519f07d7 |
18 | |
ea5f4b8e |
19 | /** |
20 | * Initialize the listcommands plugin |
21 | */ |
519f07d7 |
22 | function squirrelmail_plugin_init_listcommands () { |
73ee43b1 |
23 | global $squirrelmail_plugin_hooks; |
24 | |
25 | $squirrelmail_plugin_hooks['read_body_header']['listcommands'] = 'plugin_listcommands_menu'; |
26 | } |
27 | |
d54c9a9c |
28 | function plugin_listcommands_menu() { |
793566f0 |
29 | include_once(SM_PATH . 'plugins/listcommands/functions.php'); |
30 | plugin_listcommands_menu_do(); |
050722c4 |
31 | } |
d54c9a9c |
32 | |
e50f5ac2 |
33 | ?> |