Dan Langille wrote:
Thank you. That does exactly what I need. All I did was trap as
shown. Much appreciated. This is great!
Glad to have helped, Dan. It wasn't exactly what you asked for, so I
wasn't sure it would be satisfactory.
You know, here's another idea, provided that your version of formail is
new enough to support -l:
:0 condition-related flags
TRAP='formail -l "cat > $SPOOL && mv $SPOOL $DEST"'
:0 action-related flags
| cat > $SPOOL && mv $SPOOL $DEST
But I still don't see a general solution to expanding variables from the
command line in the log entry when the command line is run by a shell.
procmail mailing list