153aaaab513b01730e5eb69a4b2a612db0e022f0
4 * @copyright (c) 1999-2005 The SquirrelMail Project Team
5 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
14 function squirrelmail_plugin_init_filters() {
15 include_once(SM_PATH
. 'plugins/filters/filters.php');
16 filters_init_hooks ();
20 * Report spam folder as special mailbox
21 * @param string $mb variable used by hook
22 * @return string spam folder name
25 function filters_special_mailbox( $mb ) {
26 global $data_dir, $username;
27 return( $mb == getPref($data_dir, $username, 'filters_spam_folder', 'na' ) );
31 * Called by hook to Register option blocks
34 function filters_optpage_register_block_hook() {
35 include_once(SM_PATH
. 'plugins/filters/filters.php');
36 filters_optpage_register_block ();
40 * Called by hook to Start Filtering
41 * @param mixed $args optional variable passed by hook
44 function start_filters_hook($args) {
45 include_once(SM_PATH
. 'plugins/filters/filters.php');
50 * Called by hook to Update filters when Folders Change
53 function update_for_folder_hook() {
54 include_once(SM_PATH
. 'plugins/filters/filters.php');