Good afternoon, Eric,
        Hi Eric!

On Mon, 21 Jul 2003, Eric Hart wrote:

> I've been writing custom SA rules for awhile, and have a pretty good
> grasp now on regular expresssions and BODY and HEADER rules.  Search as
> I might, I have not found sources of information on advanced
> rulewriting.  Can anyone point me to info about:
> 
> URI rules
> META rules
> Use of PERL IF expressions in SA rules.
> CF processing algorithm

        Matt Kettler's howto at 
http://mywebpages.comcast.net/mkettler/sa/SA-rules-howto.txt doesn't cover 
these, unfortunately.

        The best sense I have about META rules is that they're used to
combine two or more other matches; example from
http://maxime.ritter.eu.org/Spam/spam-rc.php :

# Seen On Tv ? What does it prove ?
body FR_VU_TV_NATION                    /\bVU . LA (?:T\.?V\.?|t.l.(vision)?) 
Nation(n)?ale/i
describe FR_VU_TV_NATION                Seen on national TV (french).
lang fr describe FR_VU_TV_NATION        Vu a la télé nationale en Francais.
score FR_VU_TV_NATION                   2

# Nobody in France speaks speaks about "national TV" (We prefer to speak about "big 
# chanels" or just "seen on TV"). Only translated spams do. Dont know for Québec and 
# other french speaking countries. (mais ça m'intéresse, si tu est Canadien, Suisse, 
# Belge, Africain ou autre, n'hésites pas a m'envoyer un mail). 
body __FR_VU_TV                         /\bVU . LA (?:T\.?V\.?|t.l.(vision)?)/i
meta FR_VU_TV                           (__FR_VU_TV && ! FR_VU_TV_NATION)
describe FR_VU_TV                       Seen on TV (french).
lang fr describe FR_VU_TV               Vu a la télé en Francais.

        The paired underscores before the name indicate a rule that 
shouldn't, by itself, contribute a score to the final message.
        The above URL also has some URI rules.

        perldoc Mail::SpamAssassin::Conf has some text describing meta and
uri.
        Cheers,
        - Bill

---------------------------------------------------------------------------
        "My religion consists of a humble admiration of the illimitable
superior spirit who reveals himself in the slight details we are able to
perceive with our frail and feeble mind."
        -- Albert Einstein
(Courtesy of Paulo Scardine <[EMAIL PROTECTED]>)
--------------------------------------------------------------------------
William Stearns ([EMAIL PROTECTED]).  Mason, Buildkernel, freedups, p0f,
rsync-backup, ssh-keyinstall, dns-check, more at:   http://www.stearns.org
Linux articles at:                         http://www.opensourcedigest.com
--------------------------------------------------------------------------



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to