procmail
[Top] [All Lists]

Re: Braced block and $=

2001-05-18 11:43:22
John wrote,

| Thanks, Philip. But it does not work as per the MISCELLANEOUS:

Philip didn't say it would.

|     :0
|     * -11^0
|     * 4^0 something
|     * 4^0 somethingelse
|     * 4^0 andanother
|     * 4^0 andsomeother
|     {
|         # do something if total >= 11
|     }

If you have any recipe (as contrasted to a simple assignment) inside those
braces, $= will be reset, even if the recipe has no weighted conditions.

|     :0
|     * 8^0
|     * $$=^0
|     {
|         # do something if total was >= 8
|     }
| 
| $$=^0 is always zero at the beginning of the second block, and the
| second block always executes. (Although your recomendations do work.)

Even if the first score is non-positive?

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