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