Re: Multiple regex on same URL

2020-07-07 Thread John Hardin
On Tue, 7 Jul 2020, Martin Gregorie wrote: On Tue, 2020-07-07 at 22:07 +, Pedro David Marco wrote: Thanks Martin, but the meta may be possitive if one URL triggers SUBRULE1 and another different URL triggers SUBRULE2... how can you be sure both SUBRULES are possitive in the "same" URL?

Re: Multiple regex on same URL

2020-07-07 Thread John Hardin
On Tue, 7 Jul 2020, Martin Gregorie wrote: On Tue, 2020-07-07 at 20:39 +, 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

Re: Multiple regex on same URL

2020-07-07 Thread Pedro David Marco
>On Wednesday, July 8, 2020, 12:28:37 AM GMT+2, Martin Gregorie wrote: >>I didn't spot the requirement that the URIs must match: I read your >requirement as being that two matches from a group of URLs within a >defined set or with the same second level domain would do. My mistake.

Re: Multiple regex on same URL

2020-07-07 Thread Martin Gregorie
On Tue, 2020-07-07 at 22:07 +, Pedro David Marco wrote: > Thanks Martin, but the meta may be possitive if one URL triggers > SUBRULE1 and another different URL triggers SUBRULE2... > how can you be sure both SUBRULES are possitive in the "same" URL? > I didn't spot the requirement that the

Re: Multiple regex on same URL

2020-07-07 Thread Pedro David Marco
>On Tuesday, July 7, 2020, 11:56:22 PM GMT+2, Martin Gregorie wrote: > That should be easy enough to do with a metarule: >uri  __SUBRULE1 /(URL alternateslist1)/ >uri  __SUBRULE1 /(URL alternateslist2)/ >meta  MYMETARULE (__SUBRULE1 && __SUBRULE2) >score MYMETARULE 6.0 .>..or

Re: Multiple regex on same URL

2020-07-07 Thread Martin Gregorie
On Tue, 2020-07-07 at 20:39 +, 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 =~

Re: Multiple regex on same URL

2020-07-07 Thread Pedro David Marco
>On Tuesday, July 7, 2020, 03:16:34 PM GMT+2, Henrik K 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

Re: Multiple regex on same URL

2020-07-07 Thread @lbutlr
On 07 Jul 2020, at 07:16, Henrik K wrote: > On Tue, Jul 07, 2020 at 11:41:01AM +, Pedro David Marco wrote: >> >>> On Tuesday, July 7, 2020, 01:05:36 PM GMT+2, Henrik K wrote: >> >> >>> What examply do you mean by checking multiple regex on the "

Re: Multiple regex on same URL

2020-07-07 Thread Henrik K
On Tue, Jul 07, 2020 at 11:41:01AM +, Pedro David Marco wrote: > > >On Tuesday, July 7, 2020, 01:05:36 PM GMT+2, Henrik K wrote: > > > >What examply do you mean by checking multiple regex on the "same" URL? Give > an example. Most likely it's al

Re: Multiple regex on same URL

2020-07-07 Thread Pedro David Marco
>On Tuesday, July 7, 2020, 01:05:36 PM GMT+2, Henrik K wrote: >What examply do you mean by checking multiple regex on the "same" URL?  Give >an example.  Most likely it's already possible without any changes. for example..  checking if an URL matches Regex1  B

Re: Multiple regex on same URL

2020-07-07 Thread Henrik K
cts) volunteer for checks.. tests... etc? > > Disclaimer: I am not a super Perl developer, so the code may be ugly for perl > monks :-( sorry.. What examply do you mean by checking multiple regex on the "same" URL? Give an example. Most likely it's already possible without any changes.

Re: Multiple regex on same URL

2020-07-07 Thread Matus UHLAR - fantomas
On 07.07.20 10:18, Pedro David Marco wrote: I have written a small simple patch (tested in SA 3.4.2 so far, sorry) to be able to check up to three regex expressions on the "same" URL. It seems to work wellbut... any crazy (with all respects) volunteer for checks.. tests... etc?

Multiple regex on same URL

2020-07-07 Thread Pedro David Marco
I have written a small simple patch (tested in SA 3.4.2 so far, sorry) to be able to check up to three regex expressions on the "same" URL. It seems to work wellbut... any crazy (with all respects) volunteer for checks.. tests... etc? Disclaimer: I am not a super Perl developer, so the code may