procmail
[Top] [All Lists]

Re: limiting scope of LOGFILE

2003-02-04 10:00:02
"Mark T. Valites" <valites(_at_)geneseo(_dot_)edu> wrote:


Here's what I'd like to do:

LOGFILE=/the_log_file

:0
{
      LOGFILE=/logfile a

      :0
      * similar condition a 1
      /folder a 1

      :0
      * similar condition a 2
      /folder a 2
}

[. . . .]

# LOGFILE here should default back to /the_log_file
last value of LOGFILE from within the curly brackets.

Is there a way to limit the scope of the LOGFILE variable to within the
curly brackets?


        MAINLOGFILE = some/file
        LOGFILE = $MAINLOGFILE

        :0
        * condition for entering subbrace set "A"
        {
           LOGFILE = some/other/file

           :0
           * some condition "A"
           some_deliver

           LOGFILE = $MAINLOGFILE
        }

        [rest of rc]

-- 
dman


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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