This section of the functions.php is giving me an error
at line 388 (Fatal error: Class '1' not found
in /home/webs/kozeny/html/mailwatch/functions.php on
line 388) when viewing a message. I have verified that
I have SA scoring enabled in the MailScanner.conf file
and that the score/rules descriptions are present in the
mailscanner.maillog table:
function get_sa_rule_desc($rule) {
// Check if SA scoring is enabled
if(preg_match('/^(.+) (.+)$/',$rule,$regs)) {
$rule = $regs[1];
$rule_score = $regs[2];
} else {
$rule_score = "";
}
$result = dbquery("SELECT rule, rule_desc FROM
sa_rules WHERE rule='$rule'");
$row = mysql_fetch_object($result,1);
if ($row->rule && $row->rule_desc) {
return("<TR><TD
ALIGN=\"LEFT\">$rule_score</TD><TD WIDTH=\"200
\">$row->rule</TD><TD>$row->rule_desc</TD></TR>");
} else {
return "<TR><TD>$rule_score<TD>$rule</TD><TD> 
;</TD></TR>";
}
}
Logged In: YES
user_id=872058
Well, I worked around it by simply commenting out line 388 in
functions.php and everything "looks" like it's working
properly. What is the purpose of that line and will it affect
the functionallity of MailWatch by commenting it out?