From: Seth E. R. <ind...@us...> - 2002-08-23 17:49:04
|
Update of /cvsroot/squirrelmail/squirrelmail/plugins/filters In directory usw-pr-cvs1:/tmp/cvs-serv11202 Modified Files: filters.php Log Message: Replaced some deleted lines that are need for filters to work correctly. Index: filters.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/plugins/filters/filters.php,v retrieving revision 1.37 retrieving revision 1.38 diff -u -w -r1.37 -r1.38 --- filters.php 23 Aug 2002 17:41:20 -0000 1.37 +++ filters.php 23 Aug 2002 17:49:01 -0000 1.38 @@ -53,7 +53,6 @@ fclose($fp); } - function filters_LoadCache () { global $data_dir, $SpamFilters_DNScache; @@ -200,7 +199,6 @@ # } } - function user_filters($imap_stream) { global $data_dir, $username; $filters = load_filters(); @@ -259,6 +257,8 @@ $where = trim($where . ' ' . $what[0]); $what = addslashes(trim($what[1])); } + $search_str .= ' ' . $where . ' {' . strlen($what) . "}\r\n" + . $what . "\r\n"; /* read data back from IMAP */ $read = sqimap_run_command($imap, $search_str, true, $response, $message, $uid_support); @@ -416,7 +416,6 @@ } } - // Does the loop through each enabled filter for the specified IP address. // IP format: $a.$b.$c.$d |