procmail
[Top] [All Lists]

Re: putting in a time delay in a procmail script

2001-06-12 01:07:32
sleep(1), like so:

 :0Wci condition_related_flags
 * conditions
 | sleep 5 # or however many seconds you want in the delay
  :0A action_related_flags: # no second colon if no need for local lockfile
  original_action

1)
How come you need a -c flag here? Does procmail consider piping to a
sleep function as a delivery?

2)
While waiting for the sleep command to finish, how will procmail react to
a new incoming mail? Will it wait for the last mail to finish running the
procmail script or will it start running to procmail scripts
simultaneously? If so, will the two scripts share their variables? (i.e.
i have a variable $SENDER in the script, will the two scripts have their
own value of this variable, or will changing this variable in one of the
scripts affect the other?)

Andreas

_______________________________________________
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>