procmail
[Top] [All Lists]

Re: procmail gets bad press on www.perl.com

2001-07-19 12:47:12
Greg Matheson <lang(_at_)ms(_dot_)chinmin(_dot_)edu(_dot_)tw> writes:
It's kind of difficult to create procmail rcfiles
on the fly and use the data it provides on the fly.

If you're in a shell script, don't overlook the Here document
for creating those rc files on the fly.

rc=/tmp/`basename $0`rc$$
...
cat >$rc <<HERE
build-your-rc-file
here
as necessary
...
HERE
...
formail -s procmail $rc
rm -f $rc

Cheers,

Jim
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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