X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Ffilters%2Fsetup.php;h=8f1d22ddad63072f5a8ce34d93a135e3ab5c7f91;hp=a3906273af4070abe5a5b52fefa3bbeec5301dad;hb=bbb2bab55dbfb58735b8aa3eab53c052410753fa;hpb=f5ab1fb9847b950959856571801dcb63381cb2e4 diff --git a/plugins/filters/setup.php b/plugins/filters/setup.php index a3906273..8f1d22dd 100644 --- a/plugins/filters/setup.php +++ b/plugins/filters/setup.php @@ -1,119 +1,66 @@ _("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 - ); +/** + * Called by hook to Start Filtering + * @param mixed $args optional variable passed by hook + * @access private + */ +function start_filters_hook($args) { + include_once(SM_PATH . 'plugins/filters/filters.php'); + start_filters ($args); +} - 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 - ); - } +/** + * Called by hook to Update filters when Folders Change + * @access private + */ +function update_for_folder_hook($args) { + include_once(SM_PATH . 'plugins/filters/filters.php'); + update_for_folder ($args); } -?>