procmail
[Top] [All Lists]

Re: refusing mail from numeric domains

2001-02-13 16:17:50
Pollywog wrote:

I did a search on Google, but I could not find a Procmail rule for
dealing with mail that has a "From:" that includes a numeric domain
such as 1234.net

Well, let's see. First we need the numeric sequence bit, which would be
taken care of by [0-9]+, and then we add to that the fact that it's after
an "@" sign (I prefer to escape ALL the non-alpha characters, just
because), and in the "From:" header, and we get as a first approximation:

        ^From:(_dot_)*\(_at_)[0-9]+\(_dot_)

Aloha mai Nai`a!
-- 
"Please have your Internet License             http://kapu.net/~mjwise/
  and Usenet Registration handy..."

_______________________________________________
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>