On Tue, 7 Jul 2020, Martin Gregorie wrote:
On Tue, 2020-07-07 at 20:39 +0000, Pedro David Marco wrote:
>On Tuesday, July 7, 2020, 03:16:34 PM GMT+2, Henrik K <
h...@hege.li> wrote:
Also newer SpamAssassin already has URIDetail plugin which can also
do what you want:
uri_detail SYMBOLIC_TEST_NAME key1 =~ /value1/ key2 !~ /value2/
...
if it uses the same key more than once, then uri_detail joins them
with "OR", but we need an "AND"
-----Pedro
That should be easy enough to do with a metarule:
uri __SUBRULE1 /(URL alternateslist1)/
uri __SUBRULE2 /(URL alternateslist2)/
meta MYMETARULE (__SUBRULE1 && __SUBRULE2)
score MYMETARULE 6.0
Unfortunately there's no way to enforce them being checked together on the
*same* URI: uri1 could hit SR1 and uri2 could hit SR2 and the meta would fire, but it
would be inappropriate.
The (?=...)(?!...) construct is better.
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhar...@impsec.org FALaholic #11174 pgpk -a jhar...@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
We have to realize that people who run the government can and do
change. Our society and laws must assume that bad people -
criminals even - will run the government, at least part of the
time. -- John Gilmore
-----------------------------------------------------------------------
Today: Robert Heinlein's 113th birthday