procmail
[Top] [All Lists]

Re: procmail 'if' statements

2003-12-31 14:02:56
  * $ -$LOWER_BOUND^0

     * $  -$SQLRESULT^0

Not a safe way to subtract a number. If the number is negative, say, -3, procmail will expand that to

 --3^0

and read the caret as representing a newline in the middle of a text string.

This is the best way I've found to subtract a number in a variable:

* $ $variable^-2 HOST ?? ^^.|.^^



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