787dbf2346d8f13c79c7c5787fbeaf65477a0a13
3 * setup.php -- SpamCop plugin - setup script
5 * @copyright (c) 1999-2005 The SquirrelMail Project Team
6 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
13 * Initialize the plugin
16 function squirrelmail_plugin_init_spamcop() {
17 global $squirrelmail_plugin_hooks;
19 $squirrelmail_plugin_hooks['optpage_register_block']['spamcop'] =
21 $squirrelmail_plugin_hooks['loading_prefs']['spamcop'] =
23 $squirrelmail_plugin_hooks['read_body_header_right']['spamcop'] =
25 $squirrelmail_plugin_hooks['compose_send']['spamcop'] =
26 'spamcop_while_sending';
30 * Loads spamcop settings and validates some of values (make '' into 'default', etc.)
33 function spamcop_load() {
34 include_once(SM_PATH
. 'plugins/spamcop/functions.php');
35 spamcop_load_function();
40 * Shows spamcop link on the read-a-message screen
43 function spamcop_show_link() {
44 include_once(SM_PATH
. 'plugins/spamcop/functions.php');
45 spamcop_show_link_function();
49 * Show spamcop options block
52 function spamcop_options() {
53 include_once(SM_PATH
. 'plugins/spamcop/functions.php');
54 spamcop_options_function();
59 * Process messages submitted by email
62 function spamcop_while_sending() {
63 include_once(SM_PATH
. 'plugins/spamcop/functions.php');
64 spamcop_while_sending_function();