procmail
[Top] [All Lists]

Re: logs do not expand variables

2003-04-11 11:16:07
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
   * conditions
   {
    LOGABASTRACT=off
    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
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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