On Mon, 2 Dec 1996 tbac(_at_)mail(_dot_)idt(_dot_)net wrote:
BUT I want it only to work if certain people send mail to it.
So I added this, but it doesn't work.
:0
* ^TO_test
* ^FROM.*($PMDIR/ok)
| $SENDMAIL `cat $PMDIR/a.list`
from=`formail -rzx To:`
:0
* ^TO_test
* $? fgrep "$from" $PMDIR/ok
| $SENDMAIL `cat $PMDIR/a.list`
This should work. $PMDIR/ok should contain one address per line.
I'm sure it can still be improved.
--
Guy Geens <guy(_dot_)geens(_at_)elis(_dot_)rug(_dot_)ac(_dot_)be>: Ph.D.
student at ELIS -- TFCG / IMEC
Home Page: http://www.elis.rug.ac.be/ELISgroups/tfcg/staff/gg.html
finger ggeens(_at_)elis(_dot_)rug(_dot_)ac(_dot_)be for PGP public keys (or use
keyserver)