Hello Adam,

There is a work-around but not good at all.
As Spamassassin will be looking at all the files under
/etc/mail/spamassassin/ ,
you can just made a user.cf file and conditionally restart spamd (I use RPM
version).

Quite a bad idea, though.

Best Regards
Patrick Tsang


----- Original Message ----- 
From: "Adam Denenberg" <[EMAIL PROTECTED]>
To: "Patrick T. Tsang" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, November 27, 2003 12:27 PM
Subject: Re: [SAtalk] mysql user rules (no local.cf definition)


> Yes i have "allow_user_rules" set to 1 in the local.cf.  It doesnt seem to
> help though, i still need to define the entire rule however in the
local.cf
> file.  I define the rule in the DB as follows:
>
> mysql> select * from  userpref where username='[EMAIL PROTECTED]' and
preference
> like "%ADAM%";
>
+----------------+---------------------+-------------------------+--------+-
---
> ---+
> | username       | preference          | value                   | prefid
|
> valid |
>
+----------------+---------------------+-------------------------+--------+-
---
> ---+
> | [EMAIL PROTECTED] | score ADAM_RULE1    | 40                      |    555
|
> NULL |
> | [EMAIL PROTECTED] | header ADAM_RULE1   | Subject =~ /adamtest99/ |    554
|
> NULL |
> | [EMAIL PROTECTED] | describe ADAM_RULE1 | TEST RULE FOR ADAM      |    556
|
> NULL |
>
+----------------+---------------------+-------------------------+--------+-
---
> ---+
>
> hope that answers your question. Now if someone can just solve mine :-)
>
> thanks
> adam
>
>
> Quoting "Patrick T. Tsang" <[EMAIL PROTECTED]>:
>
> > Dear Adam,
> >
> > I am using Webuserprefs such that each user will use his/her rules
> > but it cannot support Header and Body test.
> >
> >
> > so I am very interested in your works.
> >
> > 1. How can I include the user-defined Header test in Mysql?
> > 2. What about Body test?
> >
> > In the Mysql db schema, I can't see any enough fields to do these.
> > Totally confused...
> >
> > In your question, I don't know "allow_user_rules 1" should help you or
not.
> > It doesn't make sense if the rules should be in local.cf file.
> >
> >
> > Best Regards
> > Patrick Tsang
> >
>
>
>
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
>
>
>



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to