procmail
[Top] [All Lists]

passing a score value to a program (was Re: scored weighting, and aborting questions.)

1997-03-21 12:15:34

Message has been automatically signed by PGPsendmail 1.4,
available from ftp.atnf.csiro.au:pub/people/rgooch


-----BEGIN PGP SIGNED MESSAGE-----

 From: dattier(_at_)wwa(_dot_)com (David W. Tamkin) 
 Date: Sun, 12 Jan 1997 16:26:53 -0600 (CST) 

Ken Marsh asked,

| How would I use the $= withing procmail (or would I have  to
| pass it to another program) to use it's value?

Actually, passing it to another program is rarely useful.  $= is good
for saving a score from recipe to recipe . . .

I would like to pass the score value to a program, but it doesn't work for
me.  I'm getting "variable syntax".  Basically, I'm doing things like this:

:0
*500^0 ^TOfoo(_at_)bar\(_dot_)com
|formail -I "X-myhdr: foo(_at_)bar" | procmail_print $=

I think the prob is that the $= is after the "|".  If I do something like:

:0
*500^0 ^TOfoo(_at_)bar\(_dot_)com
|echo $=

It works fine.

Is the score stored in any other "normal" named variable besides $=?

Thanks.

- -- 
mailto:dummy(_at_)cyberpass(_dot_)net                             In sunny 
Berkeley, CA
http://www.cyberpass.net/~dummy                        waiting for The Big One
        >> Stop eugenicism: don't reproduce. <<         
  >> Just say no to the pharmaceutical companies. <<   (510) 464-4604


-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQB1AwUBMzLdTNCFOCNWKXb9AQFtxQL/SvChC1yP3mvoLthXP8PAVX6QG+Ih+CBO
Do6UaRP0Mdak4QXrzGwcnHswCevQ/roQGX9io55MeEgLdF9xyK9ArTyWe2sbux8L
KMHTWkv0XnYPezWoVeDQmB2xTeegeUTl
=xPMY
-----END PGP SIGNATURE-----

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