You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Justin Mason <jm...@jmason.org> on 2004/12/13 22:29:22 UTC

Re: Questions about clearing LDAP preferences between runs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Nate Carlson writes:
> On Wed, 8 Dec 2004, Nate Carlson wrote:
> > I've been doing some hacks to Mimedefang to allow per-user configuration 
> > to be read from LDAP (using the SA ldap stuff), and have it working, 
> > except for the fact that preferences do not get cleared between runs of 
> > SpamAssassin. I took a look at the way Mimedefang is doing spam checking 
> > and hacked up a test script (attached) to verify this behavior. I've 
> > also included the .cf file I use to grab prefs out of LDAP.
> 
> <...>
> 
> Any comments on this?

hmm, thought someone already answered.   Yep, it's a limitation that's
been in SpamAssassin for a long time -- currently (in 3.0.x) you can call
Mail::SpamAssassin::copy_config() to copy a "clean" configuration object,
before reading user preferences, then copy it again to get back to the
clean config.   We're hoping to get a fix in for 3.1.0 which'll be more
sensible.

- --j.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Exmh CVS

iD8DBQFBvgmyMJF5cimLx9ARAtipAJ9n9BbkhuDn+lq5GF/f9rCAiBLD/gCfUy0O
rIPOBfOfQ+WoFpNLaujdRho=
=eS9C
-----END PGP SIGNATURE-----


Re: Questions about clearing LDAP preferences between runs

Posted by Nate Carlson <na...@natecarlson.com>.
On Mon, 13 Dec 2004, Nate Carlson wrote:
>> hmm, thought someone already answered.  Yep, it's a limitation that's been 
>> in SpamAssassin for a long time -- currently (in 3.0.x) you can call 
>> Mail::SpamAssassin::copy_config() to copy a "clean" configuration object, 
>
> The earlier reply didn't go to that extent, but with your info, makes more 
> sense.  :)
>
> I'll see what I can do with that - thanks much!

Works wonderfully - thank you much!

------------------------------------------------------------------------
| nate carlson | natecars@natecarlson.com | http://www.natecarlson.com |
|       depriving some poor village of its idiot since 1981            |
------------------------------------------------------------------------

Re: Questions about clearing LDAP preferences between runs

Posted by Nate Carlson <na...@natecarlson.com>.
On Mon, 13 Dec 2004, Justin Mason wrote:
> hmm, thought someone already answered.  Yep, it's a limitation that's 
> been in SpamAssassin for a long time -- currently (in 3.0.x) you can 
> call Mail::SpamAssassin::copy_config() to copy a "clean" configuration 
> object, before reading user preferences, then copy it again to get back 
> to the clean config.  We're hoping to get a fix in for 3.1.0 which'll be 
> more sensible.

The earlier reply didn't go to that extent, but with your info, makes more 
sense.  :)

I'll see what I can do with that - thanks much!

------------------------------------------------------------------------
| nate carlson | natecars@natecarlson.com | http://www.natecarlson.com |
|       depriving some poor village of its idiot since 1981            |
------------------------------------------------------------------------