procmail
[Top] [All Lists]

Re: best way to code a single-use recipe

2003-08-10 13:12:25
Dallman suggested,

How about, though,

        INCLUDERC = runonce

        :0 ai
        | :>runonce

Will `a' have any effect there? And won't procmail continue to try to to invoke a shell to truncate the auxiliary rcfile whenever the conditions are matched for going there, not just on the first qualifying message?

That's why I was thinking of using just

 :0 flags
 * conditions
 { INCLUDERC=runonce }

in the main rcfile and putting

 TRAP=": > $_"

or maybe with less risk,

 thisrcfile = $_
 TRAP=": > $thisrcfile"

*inside* the INCLUDERC'ed file.  For that matter,

 cp -f /dev/null $_
or
 ln -fs /dev/null $_

doesn't have any SHELLMETAS in it.

What I'm really hoping for is a way to make the same code mean something different after having been run once.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail