procmail
[Top] [All Lists]

Re: test variable value

2001-02-20 16:13:18
On 20 Feb, Timothy J. Luoma wrote:
| 
| Argh...
| 
| Sorry folks... I'm getting back into procmail after a long absence, and find
| that my brain is very filled with cob webs.
| 
| how do I do the equivalent of
| 
|       if [ "$VARIABLE" = "no"]; then
| 
| 
| in procmailrc?
| 

One way would be

:0
* VARIABLE ?? ^no$

Remember this is case insensitive by default. You can change that with
a 'D' flag on the recipe.

-- 
 /"\                                                 Don Hammond
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL,
 / \      AND NEWS TOO

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