On Sat, 18 Jan 1997, mailbox wrote:
Hi Bill, Thanks for thew reply. I have an auto responder that has a
recipe that checks the entire header for a match to a very large list.
The list words are all 'or'ed, so any list word that matches anything
in the header is a 'match'. I don't just check 'From:', but all header
lines for the presence of certain addresses, or domain names, or even
partial domain names. (eg. 'biz'). So at the moment it looks like
this, only with a much bigger list of names:
(recipe deleted...)
What I want to do is put the list of names in a file and have the
condition line check for a match to any line in the file. And I would
I have exactly the same problem and have tried some of the suggestions.
The problem -- I think -- is that I want the file to be the regular
expression that grep checks the header line(s) against. And of course
(a|e|f|)grep is formatted like so: grep regexp file(s). So far, I have not
found a way that works.
I've been looking through Alan's stuff for an examle but haven't found
it. I think the anwer is going to be to use '$' to make the condition
a shell program, but that is all I can figure out so far. I can't make
anything I've thought of work. I think my original question may have
been unclear, so I'm Cc:ing this to the list.
Curious to see an answer to this one as well.
_______________________________________________________________
Omegaman <mailto:omega(_at_)bigeasy(_dot_)com>
PGP Key fingerprint = 6D 31 C3 00 77 8C D1 C2
59 0A 01 E3 AF 81 94 63
Send e-mail with "get key" in the "Subject:"
field to get a copy of my public key
_______________________________________________________________