procmail
[Top] [All Lists]

Re: Fighting with the use of variables in .procmailrc

1999-06-08 14:07:38
On Tue, 8 Jun 1999, Bernard Debray wrote:

I am trying to use procmail to send back a different mail message,
depending on the value of a variable which is set inside a perl script
(so it has to be an environment variable).

The design of Unix prevents a subprogram from changing the environment
of a program it was spawned from.

You will probably have to use return values, or write the perl script
such that it creates a procmail snippet that gets INCLUDERC'd right
after the perl script exits.

If all you're looking for is TRUE/FALSE, I'd recommend using return
values. It's less baroque.

--
 John Hardin KA7OHZ                               
jhardin(_at_)wolfenet(_dot_)com
 pgpk -a finger://gonzo.wolfenet.com/jhardin    PGP key ID: 0x41EA94F5
 PGP key fingerprint: A3 0C 5B C2 EF 0D 2C E5  E9 BF C8 33 A7 A9 CE 76 
-----------------------------------------------------------------------
  In the Lion
  the Mighty Lion
  the Zebra sleeps tonight...
  Dee de-ee-ee-ee-ee de de de we um umma way!
-----------------------------------------------------------------------
   Tomorrow: Crusade: the Babylon Project


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