Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: How to enable a 'userconf' target?

From: McDonald, Dan <Dan.McDonald(at)austinenergy.com>
Date: Wed Jul 02 2008 - 13:54:33 EDT


On Wed, 2008-07-02 at 19:31 +0200, Ralf Fassel wrote:
> SpamAssassin version 3.1.8
> running on Perl version 5.8.8
> OpenSuse 10.2, latest patchlevel
>
> How do I enable a target tagged 'userconf'?
>

The flag just checks that there is something configured before it fires.

> I'd like to have all messages checked against the BODY_8BITS target
> defined in /usr/share/spamassassin/25_textcat.cf:
>
> body BODY_8BITS eval:check_body_8bits()
> describe BODY_8BITS Body includes 8 consecutive 8-bit characters
> tflags BODY_8BITS userconf

> Which magic do I have to put in my user_prefs file so that the
> BODY_8BITS runs?

The code is pretty clear on this one:
my @languages = split(' ', $scan->{conf}->{ok_languages});  for (@languages) {

    return 0 if $_ eq "all";
    return 0 if /^(?:am|ar|be|bg|cs|el|et|fa|fi|he|hi|hy|is|ja|ka|ko|mr| pt|ru|ta|th|tr|uk|vi|yi|zh)$/;
}

So, as long as ok_languages is set and it does not include one of the ones listed, then the rule should be evaluated.

-- 
Daniel J McDonald, CCIE #2495, CISSP #78281, CNX
Austin Energy
http://www.austinenergy.com
Received on Wed Jul 2 13:58:28 2008

This archive was generated by hypermail 2.1.8 : Tue Sep 02 2008 - 21:18:16 EDT

Do you need help?X

Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library