Richard Ernst wrote,
| For the moment, I hacked procmail to keep a copy of the score in a "$&"
| variable.
That's a lot of overkill.
If you want to save the score of a recipe even if it is zero or negative,
:0 condition-related flags
* conditions
{ } # official procmail no-op
SCORE = $=
:0A action-related flags
action_if_positive
If other recipes that clobber the references for the `A' flag intervene,
this will work:
:0 condition-related flags
* conditions
{ } # official procmail no-op
SCORE = $=
... more stuff ...
:0 action-related flags
* $ $SCORE^0
action_if_positive