procmail
[Top] [All Lists]

VERBOSE ON/OFF rule (neat trick)

1998-04-20 10:53:22
Here's just a neat trick that I thought up while trying to debug my
.procmailrc file, one recipe at a time... (I didn't see this in Jari's
FAQ, so...)

I put these lines around each recipe:

TEMPOR=${VERBOSE:-"off"}
# Change setting for this rule here...
VERBOSE="on"

...reciepe...

VERBOSE=$TEMPOR

Using this, you can set "VERBOSE" to on/off on each recipe and it'll
reset itself when it's done.  This isn't new to people who do lots of
shell programming, but I thought it was FAQ worth for the new procmail user.

Ciao!
            -=Doc
--
Lay on, MacDuff, and curs'd be him who first cries, "Hold, enough!".
                -- Shakespeare
The Doctor What: Not that 'who' guy         http://www.gerf.org/~docwhat/
docwhat(_at_)gerf(_dot_)org                    (finger 
docwhat(_at_)gerf(_dot_)org for PGP key)
PGP-RSA Fingerprint: EA 4C 8C FC 5C F0 14 78  9C 02 B9 A1 83 54 7C 8D
PGP-DSS Fingerprint: 6269 E1BE 95BC F503 B2E6  B87D B9E5 6E8F E2FB 9CBB

<Prev in Thread] Current Thread [Next in Thread>
  • VERBOSE ON/OFF rule (neat trick), docwhat(_at_)gerf(_dot_)org ;The Doctor What <=