Krzys wrote:
In a .procmailrc file is there any way to check for directory if it exists
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?
Here's an example of one approach:
:0 flags:
* conditions
path/mbox
:0e flags
{
dummy=`mkdir path`
:0:
path/mbox
}
Here's an example of another:
:0 flags:
* conditions
{
:0:
* ? test -d path
path/mbox
:0E: # this E is nearly always redundant but harmless
* ? mkdir path
path/mbox
}
____________________________________________________________
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