Hossein Movahhedian:
I am trying to write a recipe to check the existence of
of MAILDIR directory.
MAILDIR is the chdir-command of procmail. If the parameter
of MAILDIR is not an existing directory, then $MAILDIR will
get the value '.', which you should see in the parts of the
verbose log that you didn't include in your post.
OLD_MAILDIR = "$MAILDIR"
MAILDIR = '/not/there/1'
:0
* MAILDIR ?? ^^[.]^^
{
MAILDIR = '/not/there/2'
:0
* MAILDIR ?? ^^[.]^^
{
MAILDIR = '/not/there/3'
:0
* MAILDIR ?? ^^[.]^^
{
MAILDIR = "$OLD_MAILDIR"
} } }
--
Grtz, Ruud
____________________________________________________________
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