TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG:9185] procmail
While we're on the subject of procmail, I've got a question for the
experts.
I'd like to set up a filter which redirects mail from a list of people to
a folder. Here's what I have now:
# Work filter -- $HOME/.procmail/.co-workers contains the names of coworkers
# to match against.
COWORKERS=`cat $HOME/.procmail/.co-workers`
:0:
* $^From.*${COWORKERS}
INBOX.work
I thought this would work, but when there is more than one email address
in COWORKERS, it doesn't.
Does anyone know how I could do this?
Thanks,
Luke