hmm. that definitely sounds like a bug.  Not sure i know the code well
enough to offer a fix.  Seems wierd though that you can pull everything
out of the sql user prefs except for this.  I thought the modular design
would prevent SA from caring where it pulled the userprefs from (flat
file or sql) just as long as it was able to retreive them.  Why does the
finish_parsing() affect sql and not flat file user configs only ?

 adam

On Tue, 2003-07-29 at 09:11, Dallas L. Engelken wrote:
> > -----Original Message-----
> > From: Adam Denenberg [mailto:[EMAIL PROTECTED] 
> > Sent: Monday, July 28, 2003 7:20 PM
> > To: SA-Talk
> > Subject: Re: [SAtalk] custom rules with mysql -- body BUG?
> > 
> > 
> > hmmm. actually this is having a problem working for body also.
> > 
> >   I do however get "Checking priveleged commands in user config".
> > 
> 
> this is what you should see when allow_user_rules is set to 1.  if you
> look at Conf.pm, you'll see if allow_user_rules is 0, all processing of
> body, header, rawbody, uri, full, meta, test, and various others below
> those.
> 
> you would see the following two lines
> dbg( ($self->{allow_user_rules} ? "Allowing":"Not allowing") . " user
> rules!");
> dbg("Checking privileged commands in user config");
> 
> if you restart spamd and watch the debug, since the cf's are loaded once
> at startup.  if you simply pipe a message through spamc after that, you
> wont see those lines, but you would if you ran spamassassin instead of
> spamc since it loads up the rules new everytime.
> 
> the problem is, when running via spamc/spamd calls PerMsgStatus.pm and
> trying to pull body,rawbody,header,etc rules from SQL will never get
> added to the body_tests hash because finish_parsing() never gets called
> from PerMsgStatus.pm
> 
> finish_parsing is responsible for taking the rule type and storing it in
> the appropriate hash (body_tests, meta_tests, header_tests, etc).  so
> body tests that are defined in a flat file config can have their score
> and descript overridden via SQL, but you cannot create a brand new
> body/header test in SQL that has not been defined in a flat file.
> 
> that's all i can come up with...  maybe it's an easy fix?
> 
> dallas
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
> _______________________________________________
> Spamassassin-talk mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/spamassassin-talk
> 



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to