procmail
[Top] [All Lists]

Re: procmail shell variables?

2003-12-30 08:57:47
Lee Hoffner asked,

> When I set a variable in a recipe

> SPAMMER=`formail -rzx "To:"`

[Technically that's not a recipe, but OK, if you set a variable in your procmail rcfile ...]

> is SPAMMER now a shell variable?

No, because there's no shell around. It's a procmail rcfile variable. However, when you say this ...

> I'm trying to write a PERL script for procmail to invoke and don't
> know whether I could have that script access the value of $SPAMMER as
> set by the procmail recipe.

... I think that what you're really asking is whether the variable will be exported into the environment. The answer to that is yes, procmail exports all variables, so perl should know the value. Of course, if perl changes or unsets it, procmail won't know.


_______________________________________________
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>