Thanks. After some diligence:
SOMEFLAG="on"
is not the same as:
SOMEFLAG=on
John
Professional Software Engineering writes:
At 08:45 2002-01-10 +0000, John Conover wrote:
How do you do a strict boolean condition? Something like
If var is set to the string 'true', or var is a non-empty string?
I use a flag that enables/disabled a number of testing recipes (scattered
througought some filters - not stuff that can simply be tossed into a
single include I can comment out or something), and it's quite simple:
# enable/disable the filters
SOMEFLAG=on
:0
* SOMEFLAG ?? on
* someother condition, etc
or, if you want to check for it being set AT ALL:
:0
* ! SOMEFLAG ?? ^^^^
--
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.394.3200
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail