En cours

RegEx rules for SpamAssasin

After a regular expression creation to use as rules within SpamAssassin.

For example (classic Viagra and other meds spam that is coming through these days) is in HTML and along the following lines:

V / a g r a $ 3 , 3 l

S o m &

X & n a x

M e r / d i a

V a l / u m $ l , 2 1

C / a l i s $ 3 , 7 5

A m b / e n

V / a g r a $ 3 , 3 l

S o m &

X & n a x

M e r / d i a

V a l / u m $ l , 2 1

C / a l i s $ 3 , 7 5

A m b / e n

I need a regular expression that I can load under __Viag## counting abilities, where I start each catch/count expression with the first letter of the medication in question, it then has a-z and &/$ (any others you can think of) character watches in the middle and then an ending letter.

So, if the following came in:

A m b / e n

an expression:

rawbody __Viag01 m'A [a-z or &/$] [a-z or &/$][a-z or &/$][a-z or &/$] n'i

would count as a hit for the above (note the space between each of the letter/character bits).

Likewise, if the following was in the same email:

M e r / d i a

Another expression:

rawbody __Viag02 m'A [a-z or &/$] [a-z or &/$][a-z or &/$][a-z or &/$] [a-z or &/$] a'i

would count as a hit for the above (note the space between each of the letter/character bits again).

I would extend and reduce the number of usages of the [a-z or &/$] end code to match possible different combinations of the medications they are trying to sell with additional rawbody __Viag## usages.

Then, with the regular expression sorted and matching those, I will then use the following type of scoring function as an example:

meta Viagra_01 (( __Viag01 + __Viag02 + __Viag03) > 2)

score Viagra_01 10

If anyone can produce such a regex to cover this that I can then deploy within my SA rules, be appreciated, as this is getting to be a right pain.. Really need something over the next 24 hours or so for this please, which as regex is most likely nothing to some of you guys, you could knock it out in half an hour - let me know please.

Mac

Compétences : Perl

Voir plus : regular expression function, regular expression code, regex is, regex example, regex c, mac deploy, letter example, hours cover, example regular expression, example letter, regular expression example, cover meds, cover email, count bits, example cover letter, cover letter example, 0 bits, count hours, sa, rules, regex, medication, letter g, knock, e letter

Concernant l'employeur :
( 3 commentaires ) London, United Kingdom

N° du projet : #55486

2 freelance ont fait une offre moyenne de 68 $ pour ce travail

bsoist

Please see PMB for details.

100 $ USD en 1 jour
(6 Commentaires)
4.8
gasparch

Easy to do. please see PM. Gaspar

35 $ USD en 1 jour
(13 Commentaires)
4.7