At 20:19 2009-08-24 +0100, Stephen Allen wrote:
Is it possible to perform a numerical comparison of two values from within
Equality, greater than, or less than?
I can test if a variable has been set, and assume it's a number... but if
it's set to some junk/garbage I want to apply a default numerical value to it.
Procmail can perform some basic math via use of the scoring functionality,
though that's not what scoring was intended for, so it's a bit obtuse. For
more involved math, you can always use 'bc' and assign the results to a
variable inside procmail (though this would be processor costly if done
Perhaps you could give a concise example of what you're trying to accomplish?
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
procmail mailing list Procmail homepage: http://www.procmail.org/