| |||||||||||||||||||||||||||||||
|
mouss <mouss> wrote: > Duane Hill wrote: > > On Tue, 22 Jan 2008 15:25:20 -0600 > > Guy Story KC5GOI <gstory> wrote: > > > > > >> Question for you Victor. I still have to read on this but I have > >> the following in my header_checks file. Am I making this harder > >> than it has to be or is it just another way to do the same thing? > >> Forgive the email formating. It is line wrapping before REJECT. > >> > >> /^From:.*\@.*\.r[uo]/ > >> REJECT Guy says No Russian or Romanian mail, please. > >> /^From:.*\@.*\.bg/ > >> REJECT Guy says No foreign character sets for bg, please. > >> /^From:.*\@.*\.nz/ > >> REJECT Guy says No foreign character sets for nz, please. > >> /^From:.*\@.*\.lb/ > >> REJECT Guy says No foreign character sets for lb, please. > >> /^From:.*\@.*\.cz/ > >> REJECT Guy says No foreign character sets for cz, please. > >> /^From:.*\@.*\.kr/ > >> REJECT Guy says No foreign character sets for kr, please. > >> > > > > Please start a new message next time. This doesn't have anything to > > do with what the original poster sent in. > > > > You could replace ALL lines above with this one single line: > > > > /^From:.*\@.*\.([cn]z|r[ou]|bg|kr|lb)/ REJECT Guy says No foreign > > character sets for $1, please. > > > > The $1 will get replaced with whatever is found between the open and > > closed parenthesis. > > > > that's the wrong expresssion. the right one is > > /yournetplus/ REJECT > > If you think it's nice to suggest blocking all russian domains, you > might be surprised that we'll find it easier to block your domain. so > do whatever you want on your boxes, but do never suggest anything > you might regret. WOW! The OP asked if there was a better way so I showed a compressed regex with the same thing. I'll think twice next time. Thanks for the harsh reality. ------- _|_ (_| |
| ||||||||||||||||||||||||||||||
© 2004-2008 readlist.com