You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Michael Monnerie <m....@zmi.at> on 2005/11/02 17:38:12 UTC
Re: Rule for the SOFTWARE spam
On Sonntag, 30. Oktober 2005 20:20 Daniel Watts wrote:
I'm not The God Of Regex, but maybe that helps:
> body SOFTWARE_SPAM_BODY2 /(\$\d{1,3}\.\d{0,2}){10,}/s
> #matches $xx.xx at least 10 times
If you have "$133", your rule doesn't fit, as you forgot the ".". Try
body SOFTWARE_SPAM_BODY2 /\$\d{1,3}(?:\.|)\d{0,2}/
But I'm not sure what your rule should do - it would only find
"$1$12$12$133$133$1$1$1$1$1" and such - did you want to find a
$<number>, or just ten $$$$ signs ?
body TENDOLLARSIGNS /\${10,})/
> body SOFTWARE_SPAM_BODY3 /( \- ){10,}/s
> #matches at least 10 hyphens with spaces round them
This finds " - - - - - - -" (just 10x -), always with a space
before and after, so 2 spaces between each "-". Probably you wanted
this:
body SOFTWARE_SPAM_BODY3 / \-{10,} /
you don't need the brackets. Have a look at
http://perldoc.perl.org/index-tutorials.html and there "perlrequick"
and "perlretut".
mfg zmi
--
// Michael Monnerie, Ing.BSc --- it-management Michael Monnerie
// http://zmi.at Tel: 0660/4156531 Linux 2.6.11
// PGP Key: "lynx -source http://zmi.at/zmi2.asc | gpg --import"
// Fingerprint: EB93 ED8A 1DCD BB6C F952 F7F4 3911 B933 7054 5879
// Keyserver: www.keyserver.net Key-ID: 0x70545879