Gary followed up,
> Question regarding TRAP: are assignments additive (ie, TRAP=A
> followed by TRAP=B is equivalent to TRAP="A;B")?
No. Until procmail prepares to exit, TRAP is just another variable, so
TRAP=B will clobber TRAP=A.
If one wants to tack some actions onto the existing
set of TRAP actions, is this the way to go?
TRAP="$TRAP; <additional commands>"
Perhaps. Since most assignments to TRAP include variables to expand and
many include commands to substitute, they usually need to be
strong-quoted, so it's more likely to be like this:
TRAP="TRAP ; "'<additional commands>'
or
TRAP="$TRAP"'
<additional commands>'
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail