PROCMAILSC - Online Linux Manual PageSection : 5 Updated : 2001/08/04 Source : BuGless ‾.de SH \$1.. ‾.de SS \$1.. ‾.de TP þ.. ‾.de RS ..
‾.de RE
.. NAMEprocmailsc − procmail weighted scoring technique SYNOPSIS[*]w^x condition"DESCRIPTIONIn addition to the traditional true or false conditions you can specify on a recipe, you can use a weighted scoring technique to decide if a certain recipe matches or not. When weighted scoring is used in a recipe, then the final score for that recipe must be positive for it to match. A certain condition can contribute to the score if you allocate it a `weight'(w) and an `exponent'(x). You do this by preceding the condition (on the same line) with: w^x Whereas both w and x are real numbers between -2147483647.0 and 2147483647.0 inclusive. Weighted regular expression conditionsThe first time the regular expression is found, it will add w to the score. The second time it is found, w*x will be added. The third time it is found, w*x*x will be added. The fourth time w*x*x*x will be added. And so forth. This can be described by the following concise formula: 4 n n k−1 x − 1 w * Sum x = w * −−−−−−− k=1 x − 1