On Sat, 2010-01-30 at 13:25 -0600, David W. Tamkin wrote:
JW Simpson wrote:
* 1^1 > 1
* 1^1 > 1
How is that better than
* 2^1 > 1
if your goal is to add twice the size of the message to the score?
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail
Thanks for pointing that out.
I haven't had any real need to study the details of the scoring, and was really
just satisfied that I had something working that seemed more reasonable to me
than "LINEBUF=9876543210".
Sections 10.4 to 10.6 were rather cryptic to me.
I would expect that a condition such as "* $ 1^1 BH ?? > $N" to return 1 for
true or 0 for false.
I didn't see anything in the docs regarding it being linked to integer
division, and still don't see the connection.
john(_at_)system76-pc:~$ cat test.rc
VERBOSE=yes
:0
* 1^1 > 1
* 1^1 > 2
* 1^1 > 3
* 1^1 > 4
* 1^1 > 5
* 1^1 > 6
* 1^1 > 7
* 1^1 > 8
* 1^1 > 9
* 1^1 > 10
* 1^1 > 11
* 1^1 > 12
{ LOG=$= }
john(_at_)system76-pc:~$ echo -n "hello world" | procmail -m test.rc
procmail: [17061] Fri Feb 5 13:12:01 2010
procmail: Score: 11 11 "> 1"
procmail: Score: 5 16 "> 2"
procmail: Score: 3 20 "> 3"
procmail: Score: 2 22 "> 4"
procmail: Score: 2 25 "> 5"
procmail: Score: 1 26 "> 6"
procmail: Score: 1 28 "> 7"
procmail: Score: 1 29 "> 8"
procmail: Score: 1 31 "> 9"
procmail: Score: 1 32 "> 10"
procmail: Score: 1 33 "> 11"
procmail: Score: 0 34 "> 12"
procmail: Assigning "LOG=34"
--
JW Simpson <john(_at_)swajime(_dot_)com>
SwaJime's Cove℠
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail