procmail
[Top] [All Lists]

Re: Hostname regexp (was Re: no longer Re: Spam: ...life style...)

1997-09-30 07:36:57
era eriksson <era(_at_)iki(_dot_)fi> wrote:
How's this: 

([a-z0-9](-?[a-z0-9])+\.)+[a-z0-9][a-z0-9][a-z0-9]?

:r! host q.net
q.net has address 166.84.186.34
q.net mail is handled (pri=5) by q.net
q.net mail is handled (pri=10) by SMTP.q.net
q.net mail is handled (pri=10) by SMTP2.q.net
q.net mail is handled (pri=15) by fubar.q.net
q.net mail is handled (pri=25) by mailhost.Panix.Com
q.net mail is handled (pri=30) by Mail.UU.Net

Not all valid domains have two characters before the TLD. (And
what about .firm, .arpa, .uucp, et al?)

Elijah
------
I /dev/null dupes, no need to CC list posts.  It is not my responsibility to
prove to you my mail is not spam, if mail to you bounces it will not be resent.