Split up Message and SPAM filters options pages
[squirrelmail.git] / plugins / filters / setup.php
index 5169dba936ad64800e46c0b881926aa8231f3f79..aee73927645d2b28cec5aa6369b18bef6c7df8fb 100644 (file)
@@ -73,6 +73,7 @@
 
    function squirrelmail_plugin_optpage_register_block() {
       global $optpage_blocks;
+      global $AllowSpamFilters;
 
       $optpage_blocks[] = array(
          'name' => _("Message Filters"),
          'desc' => _("Filtering enables messages with different criteria to be automatically filtered into different folders for easier organization."),
          'js'   => false
       );
+
+      if ($AllowSpamFilters) {
+         $optpage_blocks[] = array(
+            'name' => _("SPAM Filters"),
+            'url'  => '../plugins/filters/spamoptions.php',
+            'desc' => _("SPAM filters allow you to select from various DNS based blacklists to detect junk email in your INBOX and move it to another folder (like Trash)."),
+            'js'   => false
+         );
+      }
    }
 ?>