X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Ffilters%2Fsetup.php;h=bb5d7ed636734fed5e00f88d855173afac0dfee4;hp=03decc5a28e9b1e5d2d7f95bfd35ec4c10ea84bc;hb=648713af5e93bdb2f85eb21892466b721d5470b5;hpb=b78c2231e6d5c4b4f6b1fa96fb25957a6e34b9d1;ds=sidebyside diff --git a/plugins/filters/setup.php b/plugins/filters/setup.php index 03decc5a..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 - ); - } -?> \ No newline at end of file +} + +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 + ); + } +} +?>