On Tue, 2010-10-26 at 08:07 +0200, Richard Smits wrote:
> Hello,
> 
> Does anyone know if it's possible to have a list of url's, and define a 
> score for all of them in one line ?
> 
I developed a similar system for my own purposes that you might want to
look at.

The idea is that you define this type of rule in an easily edited file
which contains header lines the set the rule name, score, description,
whether it ignores case, etc. These are followed by one or more
sections, each consisting of a line saying which part of the message it
applies to (body, uri, etc) and a list of match terms. A shell script,
which uses gawk for the heavy lifting, converts one or more definition
files into rules (one rule per definition) and outputs a single .cf file
containing them all. There's even a man page.

Its all available in a GPLed tarball:
http://www.libelle-systems.com/free/portmanteau/portmanteau.tgz


Martin


Reply via email to