procmail
[Top] [All Lists]

Re: Variables and Nested Blocks

1998-11-24 06:02:40
On Tue, 24 Nov 1998 04:26:10 -0800 (PST),
Kevin Benko <kevin(_at_)efn(_dot_)org> wrote:
Once I pass out of the above recipe, will the value of VARIABLE be
"somevalue" or "othervalue" for the next recipe(s)?

Not very hard to test, is it?

 $ cat test.rc
 SHELL=/bin/sh
 LOGABSTRACT=yes
 DEFAULT=/dev/null
 :0
 {
    DEFAULT=./ouch
 }

 $ procmail ./test.rc </dev/null
   Folder: ./ouch                                                             1

With a :c flag on the nesting recipe, it might be harder to figure
out, but now you know how to test that too :^)

/* era */

-- 
.obBotBait: It shouldn't even matter whether    <http://www.iki.fi/~era/>
I am a resident of the state of Washington. <http://members.xoom.com/procmail/>