procmail
[Top] [All Lists]

Re: directories

2006-02-01 14:39:30
On 2/1/06, Krzys <krzys(_at_)perfekt(_dot_)net> wrote:
In a .procmailrc file is there any way to check for directory if it exists

NEWDIR = /the/directory/in/question
OLDDIR = $MAILDIR
MAILDIR = $NEWDIR

:0
* MAILDIR ?? ^^.^^
{ LOG="$NEWDIR does not exist
" }

and if it does create mbox in there as it would and if it doesnt then
either to create it (new directory) or just do something else?

:0
* MAILDIR ?? ^^.^^
* ? mkdir -p $NEWDIR
{ MAILDIR = $NEWDIR }

:0:
mbox

The "or just do something else" part is up to you.


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