Fixes filters kicking in on login, added 'webmail_bottom' hook
[squirrelmail.git] / plugins / filters / setup.php
index 96bd4ee25b5c0c1cc9a49ad1253e228ab4e000e9..de06bc305cc22a3218a3c7314bd5bc57c306bfbd 100644 (file)
@@ -56,6 +56,15 @@ $AllowSpamFilters = true;
 global $SpamFilters_YourHop;
 $SpamFilters_YourHop = ' ';
 
+/*
+ * Some of the SPAM filters are COMMERCIAL and require a fee. If your users
+ * select them and you're not allowed to use them, it will make SPAM filtering
+ * very slow. If you don't want them to even be offered to the users, you
+ * set SpamFilters_ShowCommercial to false.
+ */
+global $SpamFilters_ShowCommercial;
+$SpamFilters_ShowCommercial = true;
+
 /*
  * A cache of IPs we've already checked or are known bad boys or good boys
  * ie. $SpamFilters_DNScache["210.54.220.18"] = true;
@@ -77,8 +86,10 @@ function squirrelmail_plugin_init_filters() {
     }
     $squirrelmail_plugin_hooks['optpage_register_block']['filters'] = 'squirrelmail_plugin_optpage_register_block';
 #    $squirrelmail_plugin_hooks['special_mailbox']['filters'] = 'filters_special_mailbox';
+    $squirrelmail_plugin_hooks['rename_or_delete_folder']['filters'] = 'update_for_folder';
+    $squirrelmail_plugin_hooks['webmail_bottom']['filters'] = 'start_filters';
 }
-
+       
 function filters_special_mailbox( $mb ) {
     GLOBAL $data_dir, $username;