procmail
[Top] [All Lists]

Re: dynamci filters

2008-08-15 17:44:41
* Dallman Ross wrote:
        # If file does not exist then create file and forward
to pager
        :0
        | touch $tempfile
        :0
        ! pager(_at_)domain(_dot_)dom
}
...
If you want something to happen after a delivery, then you
need the c-flag on the first delivering recipe.

Or don't use the pipe recipe (which also should have an "i" flag
because "touch" doesn't read stdin) at all if you don't actually want
to send your message to an external program. A variable assignment
with backticks works just as well:

  DUMMY=`touch $tempfile`

  :0
  ! pager(_at_)domain(_dot_)dom

Likewise for the other recipe.

/HW
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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