procmail
[Top] [All Lists]

Re: times -1

2004-07-01 03:59:39
Toen wij David W. Tamkin kietelden, kwam er dit uit:
Ruud H.G. van Tol:

An alternative (for times -123) is:

  *$ dot ?? $b^1 < -123

but that needs $dot.

Intriguing.

It never occurred to me to attempt to use a negative value for M; for w
or x, yes, but not for M.  If that works, great.  It's not a big deal to
define dot so long as you're writing the rcfile anyway.

M is the length of the 'mail', in this case one for dot. So you meant L. 
To get a negative M you need an ugly big message. <g>


From man procmailsc:
 |
 |        * w^x  < L
 |
 | will generate an additional score of:
 |
 |                   x
 |            /  L  \
 |        w * | --- |
 |            \  M  /
 |

     |M|     w ^ x     L

     dot ?? $b ^ 1 < -123

                  1
           /-123 \
      $b * | --- |
           \  1  /


      = $b * -123


The beauty of "HOST ?? ^.|.^" is of course that it stands on its own 
(free from namespace-trouble etc.).

-- 
Grtz, Ruud

____________________________________________________________
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

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