X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Ffilters%2Fsetup.php;h=bb5d7ed636734fed5e00f88d855173afac0dfee4;hb=46a184ff62888899dce2831f0b67fc9173ef27d7;hp=2fd817cdeb2beddbd925b69e6eb2bdf7d85d63ea;hpb=cbe5423b30fd1c50b7dd9546778cbebf48804953;p=squirrelmail.git diff --git a/plugins/filters/setup.php b/plugins/filters/setup.php index 2fd817cd..bb5d7ed6 100644 --- a/plugins/filters/setup.php +++ b/plugins/filters/setup.php @@ -1,83 +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 + ); + } +} ?>