I wanted to save logs in directories like this:
/var/log/procmail/07-04-26/logfile
The problem is that procmail couldn't create the log if
the directory doesn't exist. Instead of checking if the
directory exist every message over and over again I put
in my crontab:
0 12 * * * /bin/mkdir -p $(TZ=GMT-24 date +/var/log/procmail/\%y-\%m-\%d)
That's it (:-) Every day at noon, I prepare the directory for
the next day.
Bye,
Udi
____________________________________________________________
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