> i assume you mean shell wildcards, > which are not regular expressions in > the regexp(6) sense of the word.
yes, my mistake > >> dropuser=(reply.yahoo.com!calendar-invite) > >> > >> if(eval ~ $dom!$addr $dropuser) > >> exit 'member of dropuser list' > > despite your comment i don't understand why you > are messing with eval here. using eval is almost > always wrong. true. however, this list of exceptions is one of several. rather than put the lists inline with the code, i thought it would be easier to read and modify with the lists at the top. also, most of the other lists do need some sort of wildcarding. for example, # ignore spf mismatches from these domains spfign=(*.bell-labs.com mac.com) the full script is /n/sources/contrib/quanstro/nupas/bits/verifysender i thought it more understandable to treat all the lists in the same way, rather than make special cases. a way of avoiding eval that wasn't more convoluted wasn't apparent to me at the time. - erik