On 9 Jul, Lingen Gayle C CONT PSNS wrote:
| My scoring recipe has a bug. If one of my keywords appears in the body more
| than once the scoring only occurs on the first occurrence of the keyword. I
| need to keep adding for each occurrence.
You provide scant information to go on, but it sounds like you simply
need a different "exponent" part to the score on your conditions. I'd
guess you have an "exponent" of 0 (zero) and need 1 (or higher).
man procmailsc
For fun (using the rcfile included at the end) ...
$ procmail ./thisrc </dev/null
VAR = "variable"
1^0 VAR ?? . scores 1
1^1 VAR ?? . scores 8
1^1.2 VAR ?? . scores 16
1^2 VAR ?? . scores 255
1^3 VAR ?? . scores 3280
1^4 VAR ?? . scores 21845
$ procmail VAR=four ./thisrc </dev/null
VAR = "four"
1^0 VAR ?? . scores 1
1^1 VAR ?? . scores 4
1^1.2 VAR ?? . scores 5
1^2 VAR ?? . scores 15
1^3 VAR ?? . scores 40
1^4 VAR ?? . scores 85
$ procmail VAR=16characterslong ./thisrc </dev/null
VAR = "16characterslong"
1^0 VAR ?? . scores 1
1^1 VAR ?? . scores 16
1^1.2 VAR ?? . scores 87
1^2 VAR ?? . scores 65535
1^3 VAR ?? . scores 21523360
1^4 VAR ?? . scores 1431655765
---(cut here)---
# thisrc
DEFAULT = /dev/null
NL = "
"
VAR=${VAR:-variable}
LOG = "$NL VAR = \"$VAR\"$NL$NL"
:0
* 1^0 VAR ?? .
{ LOG = "1^0 VAR ?? . scores $=$NL" }
:0
* 1^1 VAR ?? .
{ LOG = "1^1 VAR ?? . scores $=$NL" }
:0
* 1^1.2 VAR ?? .
{ LOG = "1^1.2 VAR ?? . scores $=$NL" }
:0
* 1^2 VAR ?? .
{ LOG = "1^2 VAR ?? . scores $=$NL" }
:0
* 1^3 VAR ?? .
{ LOG = "1^3 VAR ?? . scores $=$NL" }
:0
* 1^4 VAR ?? .
{ LOG = "1^4 VAR ?? . scores $=$NL" }
---(cut here)---
--
Reply to list please, or append "8" to "procmail" in address if you must.
Spammers' unrelenting address harvesting forces me to this...reluctantly.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail