Perhaps this email is more appropriate for spamassassin-dev; if so, my
apologies. This seemed a sensible first place to try.


I'm trying to develop a rule which only matches invalid addresses, at my
domain. For example, I would want:


[EMAIL PROTECTED] to match
[EMAIL PROTECTED] to match
[EMAIL PROTECTED] to NOT match


Also, clearly the rule has to not match on anything else either (this is
what makes it hard). So far I have come up with (with the help of people
from #perl!):


/\b(?!(valid1|valid2)\@)[EMAIL PROTECTED]/

I have only tested this in a perl script so far (not in SA itself), but
this works, unless valid1 or valid2 contain a '.'. If they do, it doesn't
work (yes, I am escaping the '.'). Does anyone know how I can overcome this
problem?


Thanks,
Andrew.


PS: I intend to use ALL ~= /thepattern/ as my rule.

Reply via email to