procmail
[Top] [All Lists]

Re: Tip: Tomorrow will be Another Day

2007-04-26 08:41:27
On 4/26/07, Udi Mottelo <uuddii(_at_)eng(_dot_)tau(_dot_)ac(_dot_)il> wrote:

        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:

Checking if the directory exists is pretty painless:

MAILDIR=/the/directory/that/should/exist
:0
* MAILDIR ?? ^^[.]^^
* ? mkdir -p /the/directory/that/should/exist
{ MAILDIR=/the/directory/that/should/exist }

You ought to have the error-checking code in procmailrc anyway in case
for some reason your cron job fails, so ...

____________________________________________________________
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