procmail
[Top] [All Lists]

Re: timestamp in the procmail log?

2007-09-02 21:41:52
On Sat, Jun 02, 2007 at 05:53:21PM -0600, LuKreme wrote:
On 2-Jun-2007, at 05:43, Dallman Ross wrote:
Another approach, that, so far as I know, David Tamkin was first to
post about circa seven or nine years ago, was to generate a file
daily, e.g., with cron.  I did that for a number of years as well.
The file had in it, e.g.,

   MYDATE = 02-Jun-2007

Now that is a good idea.  I like that.


If we're going down that road ... why not have the
cron job update .procmailrc with MYDATE=...?  Saves a file open. :)

Technical note, in passing: make sure that the cron job runs
"lockfile -ml" before updating the date file, and "lockfile -mu"
afterwards to avoid potential race conditions and inconsistencies.
____________________________________________________________
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>