Menu

#3 functions.php error line 388 sa scoring

open
nobody
None
6
2005-01-30
2005-01-30
Wes Kozeny
No

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>&nbsp
;</TD></TR>";
}
}

Discussion

  • Wes Kozeny

    Wes Kozeny - 2005-01-30
    • priority: 5 --> 6
     
  • Wes Kozeny

    Wes Kozeny - 2005-01-30

    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?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.