X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Ffilters%2Fsetup.php;h=bb5d7ed636734fed5e00f88d855173afac0dfee4;hb=46a184ff62888899dce2831f0b67fc9173ef27d7;hp=5169dba936ad64800e46c0b881926aa8231f3f79;hpb=4eee59686ea6b1027411d32b4714e896c5fc6012;p=squirrelmail.git diff --git a/plugins/filters/setup.php b/plugins/filters/setup.php index 5169dba9..bb5d7ed6 100644 --- a/plugins/filters/setup.php +++ b/plugins/filters/setup.php @@ -1,84 +1,109 @@ _("Message Filters"), - 'url' => '../plugins/filters/options.php', - 'desc' => _("Filtering enables messages with different criteria to be automatically filtered into different folders for easier organization."), - 'js' => false - ); - } +} + +function squirrelmail_plugin_optpage_register_block() { + global $optpage_blocks; + global $AllowSpamFilters; + + $optpage_blocks[] = array( + 'name' => _("Message Filters"), + 'url' => '../plugins/filters/options.php', + '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 + ); + } +} ?>