procmail
[Top] [All Lists]

Global variable

2002-06-12 02:28:35
Dear group

Have problem.

.procmailrc
--------------------------
TESTER=0

:0
* recipe AA
{
    ...

    :0
    TESTER=|some action returning "0" or "1"

    ...
}

:0
* TESTER ?? 0
|another action

:0
* TESTER ?? 1
|yet another action
---------------------------

Problem is that variable TESTER act as local variable in C or Pascal style.

That is value of TESTER set in subfunction of recipe AA is erased after 
subfunction is left.

I would like to act it as global so I could change its value in subfunction of 
recipe AA

and use this value outside of subfonction

P.S
I don't know too quite how call in english that area between { and } ;-)) so I 
call it subfunction

---------------------------

Marek Wysmu\xB3ek



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