procmail
[Top] [All Lists]

Re: greenlist.dat

2005-10-19 14:09:13
On Oct 18, Christopher L. Barnard 
(nospam-cbar44(_at_)tsg(_dot_)cbot(_dot_)com(_dot_)ns) typed:

Chris:  I want to put
Chris:
Chris:  Goodguys Inc
Chris:
Chris:  into my greenlist so that an incoming email with the From: line of
Chris:  From: Goodguys Inc. <user(_at_)goodguys(_dot_)com>
Chris:  would be approved.  The reason I did not go with the -x flag to fgrep
Chris:  is because my understanding is that fgrep this would only match
Chris:  From: Goodguys Inc
Chris:  and thats it.
Chris:
Chris:  Christopher




While attempting to test out the -x for fgrep, I was coming up with
negative results.  However subsitituting x with e makes it better.
(Hmmm, I better double-check my fgrep in my rc file!)


In my greenlist file I have a single line:
Goodguys Inc


At the command-line:
% echo "From: Goodguys Inc." | fgrep -ei -f greenlist
From: Goodguys Inc.

% echo $?
0


So try this, and I think it'll give you the results you're looking for.
And the -i is optional, depending on your mood.


 Thanks
 Birl



 Archives   http://www.xray.mpe.mpg.de/mailing-lists/procmail/

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>