Source for file setup.php
Documentation is available at setup.php
* setup.php -- SpamCop plugin - setup script
* @copyright 1999-2020 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: setup.php 14845 2020-01-07 08:09:34Z pdontthink $
function squirrelmail_plugin_init_spamcop() {
global $squirrelmail_plugin_hooks;
$squirrelmail_plugin_hooks['optpage_register_block']['spamcop'] =
$squirrelmail_plugin_hooks['loading_prefs']['spamcop'] =
$squirrelmail_plugin_hooks['read_body_header_right']['spamcop'] =
$squirrelmail_plugin_hooks['compose_send']['spamcop'] =
* Loads spamcop settings and validates some of values (make '' into 'default', etc.)
function spamcop_load() {
include_once(SM_PATH .
'plugins/spamcop/functions.php');
* Shows spamcop link on the read-a-message screen
function spamcop_show_link(&$links) {
include_once(SM_PATH .
'plugins/spamcop/functions.php');
spamcop_show_link_function($links);
* Show spamcop options block
function spamcop_options() {
include_once(SM_PATH .
'plugins/spamcop/functions.php');
spamcop_options_function();
* Process messages submitted by email
function spamcop_while_sending() {
include_once(SM_PATH .
'plugins/spamcop/functions.php');
spamcop_while_sending_function();
Documentation generated on Mon, 13 Jan 2020 04:23:32 +0100 by phpDocumentor 1.4.3