procmail
[Top] [All Lists]

Re: procmail friends list

1996-07-10 15:27:18
Is it possible to have procmail look at a file or list of email
addresses, and if an address appears in the list it files the message
in a mailbox, else it files it in the default mailbox?  I know the
names can be put in ~/.procmailrc, but it would be more convenient if
the names were stored in a separate file from a maintenance
standpoint, (maybe even ~/.mailrc, or ~/.elm/aliases.text.) Maybe
something like the cache used in Smartlist, or something. Do I have to
spawn an egrep to do this?

Use "egrep -f FILE" with the test address on STDIN.  Success means the
address matched one of the regexps in the FILE (one per line; see the
"man" page).

Send me an e-mail with the subject of "send procmail library" and then
peruse the file "ackmail.rc" and "commands.rc" for an example usage of
address matching, and automatic regexp generation from input addresses.

___________________________________________________________
Alan Stebbens       <stebbens(_at_)sgi(_dot_)com>       (415) 933-6437
Silicon Interactive Group,   Silicon Graphics, Inc.   (SGI)

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