I have started to write my own custom rules to deal with rubbish like
that below.
I am looking at writing meta rules, which seems fine and gets a few
hits, but what I need to know is what punctuation marks and characters
need to be escaped. I know that $ and . would need to be \$ and \. to
be literal, but what about things like :,' or"?
Example:
olesia_k "Let Talk About Love"
============================
My Basics
I am a: 56 year old woman
Seeking: seeking men, 39-51
Located in: Westland, Michigan USA Dating | reykjavik, Capital Iceland
Dating | Littleton, Colorado USA Dating
Looking for: Long-term
Height: 5' 5" (168 cm)
Body Type: Fit/Athletic
photos: 39
Hair Color: Black
Income: $25,000 to $21,000
Smokes: Socially
Wants Kids: 96
=
Click here to join now >>
##
Email ends
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
AMaViS-user mailing list
AMaVi...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
us...@spamassassin.apache.org gets dozens of posts a day.
Try that one.
Either way, your question isn't a spamassassin or amavisd-new question.
It is a perl regular expression question.
For examples, cd to your spamassassin rules directory and look at examples,
or google for perl regular expressions or us perldoc or man perl.
--
Michael Scheidell, CTO
>|SECNAP Network Security
Winner 2008 Network Products Guide Hot Companies
FreeBSD SpamAssassin Ports maintainer
_________________________________________________________________________
This email has been scanned and certified safe by SpammerTrap(r).
For Information please see http://www.spammertrap.com
_________________________________________________________________________
> I am looking at writing meta rules, which seems fine and gets a few
> hits, but what I need to know is what punctuation marks and characters
> need to be escaped. I know that $ and . would need to be \$ and \. to
> be literal, but what about things like :,' or"?
The question belongs to us...@spamassassin.apache.org mailing list.
See: man perlre
Typically what needs to be quoted are: . ? + * | ( ) [ ] { } ^ $ \ @
and a character which is used as a regexp delimiter, often a /
To avoid having to quote a /, instead of:
uri L_LUST /^http:\/\/www\.(need|crave)-lust\.com(\/|$)/i
one could use:
uri L_LUST m{^http://www\.(need|crave)-lust\.com(/|$)}i
See: man perlop, look for operator m//
Mark