X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Ffilters%2Fsetup.php;h=aee73927645d2b28cec5aa6369b18bef6c7df8fb;hb=eec8160076a4381b54b3c1ee0266d436721319f8;hp=5169dba936ad64800e46c0b881926aa8231f3f79;hpb=4eee59686ea6b1027411d32b4714e896c5fc6012;p=squirrelmail.git diff --git a/plugins/filters/setup.php b/plugins/filters/setup.php index 5169dba9..aee73927 100644 --- a/plugins/filters/setup.php +++ b/plugins/filters/setup.php @@ -73,6 +73,7 @@ function squirrelmail_plugin_optpage_register_block() { global $optpage_blocks; + global $AllowSpamFilters; $optpage_blocks[] = array( 'name' => _("Message Filters"), @@ -80,5 +81,14 @@ '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 + ); + } } ?>