procmail
[Top] [All Lists]

Re: is this grep is correct?

2000-09-28 10:07:03
Professional Software Engineering wrote:
* ? grep -i $FROM $HOME/trusted_addresses

(note the use of the -i flag for case insensitivity)

I might also suggest adding the -F flag to grep (or using fgrep)... so 
that foo.com in $FROM doesn't match foodcom.com in trusted_addresses.
IOW:

* ? grep -F -i $FROM $HOME/trusted_addresses

-- 
Neither I nor my employer will accept any liability for any problems
or consequential loss caused by relying on this information.  Sorry.
Collin Park                         Not a statement of my employer.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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