procmail
[Top] [All Lists]

Re: Question on scoring

1996-11-04 10:22:26
wotan(_at_)netcom(_dot_)com asked,

| Recently I have been trying to use scoring to filter my mail.
| 
| However, when I use this line:
| 
|        :0
|          * 100^3   > 2000  
|        test-box

Reread the procmailsc(5) manual page.  That condition will score, where S is
the actual size of the message, 100 x (S/2000)^3, which will be positive if S
is positive.  If that is the only condition on that recipe, then any message
that runs into it will be stored in test-box.

| Otherwise, my scored rc's seem to be doing what I want them to do.

Well, what exactly are you trying to do there?  Unless you're saving $=
for use in a later recipe -- and you probably aren't because that recipe is
delivering -- scoring doesn't make sense on a recipe with only one condition.

If you want to put mail longer than 2000 bytes into test-box, leave the
scoring out:

  :0: # local lockfile unless test-box/ is a directory
  * > 2000
  test-box

<Prev in Thread] Current Thread [Next in Thread>