Dan Langille wrote:
My procmail logs contain items such as this:
Folder: cat > ${SPOOL} && mv ${SPOOL} ${DEST} 6359
Is is possible to get the actual variable values instead of the
above? For example:
Folder: cat > /tmp/foo.bar && mv /tmp/foo.var /tmp/queue 6359
Not easily. You would if there were no characters from $SHELLMETAS in
there and procmail expanded the variables itself, but when the command
line is run by a shell, you'd need some trickery with LOG= or TRAP= to
do it. It would have to expand the variables without acting on the ">"
or "&&" -- not easy.
:0 condition-related flags
* conditions
{
TRAP='echo \$SPOOL is $SPOOL and \$DEST is $DEST.'
:0 action-related flags
| cat > $SPOOL && mv $SPOOL $DEST
}
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail