The following fragment tests to see if an address is in a database,
and then if it is, assigns the address to the variable $SENDER.
:0
* ? /home/john/receivedAddressdb "${HOME}/address.db"
{
:0 whc
SENDER=| /home/john/receivedAddressdb "${HOME}/address.db"
:0 whf
| formail -I "Envelope-To: $SENDER"
}
Is it possbile to do the test and assigment in one statement?
John
--
John Conover Tel. 408.370.2688 conover(_at_)rahul(_dot_)net
631 Lamont Ct. Fax. 408.379.9602 http://www.johncon.com/
Campbell, CA 95008 Cel. 408.772.7733
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail