procmail
[Top] [All Lists]

Creating Directories as needed

2003-08-06 07:54:28
I need to create directories depending upon the matching of strings in subject.
for example
Subject: #string1#string2# rest of subject

I need to have the message filed to string1/string2/.

:0
* ^Subject:.##[a-zA-Z]*##[a-zA-Z]*##.*
string1/string2/.


If the directory exists, then go ahead and create a new numbered file.
If directory doesn't exist, create it and then create a new numbered file.

Any help on assigning the variables ($string1 $string2 and then doing a test will be appreciated.



bruce


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>