X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Ffilters%2Ffilters.php;h=34ffd31dd5b355784e5c04ef10200e4f74b0b271;hp=251fb5ae7950b4ee50b551ce710363b39ab7f5e2;hb=595848f9dbf9fda650ca1809f94702043dbc0f79;hpb=5b4ba967c2353d583ae6f010a3bf51a86febc057 diff --git a/plugins/filters/filters.php b/plugins/filters/filters.php index 251fb5ae..34ffd31d 100644 --- a/plugins/filters/filters.php +++ b/plugins/filters/filters.php @@ -1,10 +1,6 @@ $value) { @@ -404,6 +430,10 @@ function filters_spam_check_site($a, $b, $c, $d, &$filters) { return 0; } +/** + * FIXME: Undocumented function + * @access private + */ function load_filters() { global $data_dir, $username; @@ -417,6 +447,10 @@ function load_filters() { return $filters; } +/** + * FIXME: Undocumented function + * @access private + */ function load_spam_filters() { global $data_dir, $username, $SpamFilters_ShowCommercial; @@ -435,7 +469,7 @@ function load_spam_filters() { $filters['MAPS RSS']['dns'] = 'relays.mail-abuse.org'; $filters['MAPS RSS']['result'] = '127.0.0.2'; $filters['MAPS RSS']['comment'] = - _("COMMERCIAL - Servers that are configured (or misconfigured) to allow spam to be relayed through their system will be banned with this. Another good one to use."); + _("COMMERCIAL - Servers that are configured (or misconfigured) to allow spam to be relayed through their system will be banned with this. Another good one to use."); $filters['MAPS DUL']['prefname'] = 'filters_spam_maps_dul'; $filters['MAPS DUL']['name'] = 'MAPS Dial-Up List'; @@ -443,7 +477,7 @@ function load_spam_filters() { $filters['MAPS DUL']['dns'] = 'dialups.mail-abuse.org'; $filters['MAPS DUL']['result'] = '127.0.0.3'; $filters['MAPS DUL']['comment'] = - _("COMMERCIAL - Dial-up users are often filtered out since they should use their ISP's mail servers to send mail. Spammers typically get a dial-up account and send spam directly from there."); + _("COMMERCIAL - Dial-up users are often filtered out since they should use their ISP's mail servers to send mail. Spammers typically get a dial-up account and send spam directly from there."); $filters['MAPS RBLplus-RBL']['prefname'] = 'filters_spam_maps_rblplus_rbl'; $filters['MAPS RBLplus-RBL']['name'] = 'MAPS RBL+ RBL List'; @@ -694,6 +728,10 @@ function load_spam_filters() { return $filters; } +/** + * FIXME: Undocumented function + * @access private + */ function remove_filter ($id) { global $data_dir, $username; @@ -706,6 +744,10 @@ function remove_filter ($id) { removePref($data_dir, $username, 'filter' . $id); } +/** + * FIXME: Undocumented function + * @access private + */ function filter_swap($id1, $id2) { global $data_dir, $username; @@ -718,8 +760,11 @@ function filter_swap($id1, $id2) { } } -/* This update the filter rules when - renaming or deleting folders */ +/** + * This update the filter rules when renaming or deleting folders + * @param array $args + * @access private + */ function update_for_folder ($args) { $old_folder = $args[0]; $new_folder = $args[2]; @@ -746,9 +791,11 @@ function update_for_folder ($args) { } } } -/* + +/** * Function extracted from sqimap_get_small_header_list. * The unused FETCH arguments and HEADERS are disabled. + * @access private */ function filter_get_headers ($imap_stream, $query) { /* Get the small headers for each message in $msg_list */ @@ -866,4 +913,16 @@ function filter_get_headers ($imap_stream, $query) { return $msgs; } +/** + * Display formated error message + * @param string $string text message + * @return string html formated text message + * @access private + */ +function do_error($string) { + global $color; + echo "

"; + echo $string; + echo "

\n"; +} ?>