alexus | 1 Mar 2010 18:26
Picon

REGEX

can someone help me?

I have created 2 regex and for test i cat one of new msg i piped it
through pcregrep and i copy and paste my regex from simcontrol, it
matched!

but in my logs (simscan) it doesn't match and there for wont refuse
that email and i get spamed...

any ideas?

-bash-3.2# cat /var/qmail/control/simcontrol
:clam=yes,spam=yes,spam_hits=8.0,regex=^Subject\:.*80\% OFF
For.*:^Subject\:.*Mr\..*\,.we.offer.super.70\%.rebates$
-bash-3.2# cat new/msg.1267463973.15859.14424 | pcregrep
'^Subject\:.*Mr\..*\,.we.offer.super.70\%.rebates$'
Subject: Mr. 35dfbe66dd941ef184b, we offer super 70% rebates
-bash-3.2#

--

-- 
http://alexus.org/

!DSPAM:4b8bf8ab32714942418482!

Sean | 3 Mar 2010 02:48
Favicon

Re: REGEX

alexus said on 3/1/2010 10:26 AM:
> can someone help me?
>
> I have created 2 regex and for test i cat one of new msg i piped it
> through pcregrep and i copy and paste my regex from simcontrol, it
> matched!
>
> but in my logs (simscan) it doesn't match and there for wont refuse
> that email and i get spamed...
>
> any ideas?
>
> -bash-3.2# cat /var/qmail/control/simcontrol
> :clam=yes,spam=yes,spam_hits=8.0,regex=^Subject\:.*80\% OFF
> For.*:^Subject\:.*Mr\..*\,.we.offer.super.70\%.rebates$
> -bash-3.2# cat new/msg.1267463973.15859.14424 | pcregrep
> '^Subject\:.*Mr\..*\,.we.offer.super.70\%.rebates$'
> Subject: Mr. 35dfbe66dd941ef184b, we offer super 70% rebates
> -bash-3.2#
>
>   
[I'm assuming the regexp wrapped on thecat /var/qmail/control/simcontrol\

1. I thought you had to use \072 rather than a literal colon in the 
regexp.  We discussed that with you on this list last month.
....so
:clam=yes,spam=yes,spam_hits=8.0,regex=^Subject\072.*80\% OFF 
(untested...)...etc.

2. In the example, you have a test for 80% in front of the Mr. ... 70%.  
(Continue reading)


Gmane