patrickbaer wrote:

I'm looking for some regex to find a list of strings in the body,
independent where they are and so on.

Sounds more like your looking for a meta rule.

perldoc Mail::SpamAssassin::Conf
and search for "meta"

The most common phrases are: nice girl, good looking, chat with you, nice
pics, videos

So if at least three of them hit, the rule should match.

Do you mean something like the below (untested) rules?

body __TB_1 /\bnice girl\b/
body __TB_2 /\bgood looking\b/
body __TB_3 /\bchat with you\b/
body __TB_4 /\bnice pics\b/
body __TB_5 /\bvideos\b/
meta TB (__TB_1+__TB_2+__TB_3+__TB_4+__TB_5)>2

Regards
/Jonas

--
Jonas Eckerman, FSDB & Fruktträdet
http://whatever.frukt.org/
http://www.fsdb.org/
http://www.frukt.org/

Reply via email to