procmail
[Top] [All Lists]

Re: all numbers in the username

2001-03-07 18:04:05
Eric Krichbaum <sysadmin(_at_)mountain(_dot_)net> writes:
All numbers are not allowed in user names from juno, and hotmail's aren't 
allowed to start with numbers.  I can't seem to get a good recipe for 
catching these.   It would seem to me that if a message starts with a 
number and is @(juno|hotmail) that I should be able to stop it but I can't 
seem to get this to work:

You mean "address" instead of "message", right?


#
# Bump all just number names.  This doesn't work.
#
#:0:
#* ^From:.[0-9]+@(juno|hotmail).com
#Spam.justnumber

That'll match something like
        From: 239847(_at_)juno(_dot_)com
but not
        From:   239847(_at_)juno(_dot_)com
or
        From: Bob <239847(_at_)juno(_dot_)com>

You need to allow stuff before the numbers, the the constraint that the
last character before the numbers is a 'separator' like < or whitespace.
So:

        :0:
        * ^From:(.*[^-a-z0-9_.])?[0-9]+@(juno|hotmail)\.com([^-a-z0-9_.]|$)
        Spam.justnumber


Philip Guenther
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>