[prev in list] [next in list] [prev in thread] [next in thread] 

List:       procmail
Subject:    look(1)
From:       John Conover <conover () rahul ! net>
Date:       2001-04-27 7:04:03
[Download RAW message or body]

There is a little known utility called look(1), (it does a binary
search on a sorted text file-so is very stingy with machine
resources-that came out in Unix 7,) and can be used with procmail(1):
    
    :0:
    * ? test -f "${HOME}/.procmail.file"
    * ? look -f some_word "${HOME}/.procmail.file"
    the_file

and if some_word, (like an e-mail address,) is in the
~/.procmail.file, then the e-mail will be filed in the_file, (or
whatever.)

~/.procmail.file can be very large without straining machine
resources.

        John

-- 

John Conover        Tel. 408.370.2688  conover@rahul.net
631 Lamont Ct.      Cel. 408.772.7733  http://www.johncon.com/
Campbell, CA 95008  Fax. 408.379.9602  

_______________________________________________
procmail mailing list
procmail@lists.RWTH-Aachen.DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic