- Joined
- Jan 24, 2006
- Messages
- 28
- Reaction score
- 0
- Points
- 1
- Location
- Pendleton, SC
- Your Mac's Specs
- iMac Intel 2.0Ghz 17"
Python help for Mail
I'm beginning to use JunkMatcher with Mail and am trying to train the application on different types of spam I receive. One email I received today had a very different spelling of "viagra" and I can't seem to get JunkMatcher to detect it. I've tried writing a regular expression. No dice. I'm not at all fluent in Python and the web documentation for JunkMatcher just isn't helping. Can anyone suggest an expression that would work for the following variations of common spam words?
VlljAGRA
CIjALIlS
VAjLIlUM
AMjBlIEN
Here is the expression I tried:
(?i)v\S\W?i\S\W?a\S\W?g\S\W?r\S\W?a
I assumed that would allow for a wildcard between the letters. But it doesn't work.
I'm beginning to use JunkMatcher with Mail and am trying to train the application on different types of spam I receive. One email I received today had a very different spelling of "viagra" and I can't seem to get JunkMatcher to detect it. I've tried writing a regular expression. No dice. I'm not at all fluent in Python and the web documentation for JunkMatcher just isn't helping. Can anyone suggest an expression that would work for the following variations of common spam words?
VlljAGRA
CIjALIlS
VAjLIlUM
AMjBlIEN
Here is the expression I tried:
(?i)v\S\W?i\S\W?a\S\W?g\S\W?r\S\W?a
I assumed that would allow for a wildcard between the letters. But it doesn't work.