3 * Message and Spam Filter Plugin - Setup
6 * @copyright (c) 1999-2005 The SquirrelMail Project Team
7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
16 function squirrelmail_plugin_init_filters() {
17 include_once(SM_PATH
. 'plugins/filters/filters.php');
18 filters_init_hooks ();
22 * Report spam folder as special mailbox
23 * @param string $mb variable used by hook
24 * @return string spam folder name
27 function filters_special_mailbox( $mb ) {
28 global $data_dir, $username;
29 return( $mb == getPref($data_dir, $username, 'filters_spam_folder', 'na' ) );
33 * Called by hook to Register option blocks
36 function filters_optpage_register_block_hook() {
37 include_once(SM_PATH
. 'plugins/filters/filters.php');
38 filters_optpage_register_block ();
42 * Called by hook to Start Filtering
43 * @param mixed $args optional variable passed by hook
46 function start_filters_hook($args) {
47 include_once(SM_PATH
. 'plugins/filters/filters.php');
52 * Called by hook to Update filters when Folders Change
55 function update_for_folder_hook($args) {
56 include_once(SM_PATH
. 'plugins/filters/filters.php');
57 update_for_folder ($args);