On Wednesday, Aug 6, 2003, at 08:39 Canada/Mountain, Bruce Skelton
wrote:
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/.
We just covered this on the list in the last month or so.
On Saturday, Jul 5, 2003, at 15:03 Canada/Mountain, Professional
Software Engineering wrote:
:0
* ! LISTNAME ?? ^^^^
{
:0:
$MLDIR/$LISTNAME/$MONTHFOLDER.$LISTNAME
# If it's delivered, it's delivered (and procmail won't be
parsing
# past the above line). If it failed, it's probably because
the
# directory didn't exist, so try creating the dir and writing
again.
:0eW
DUMMY=| mkdir -p $MLDIR/$LISTNAME
# if mkdir succeeded, store the message now
:0a:
$MLDIR/$LISTNAME/$MONTHFOLDER.$LISTNAME
}
--
and I swear it happened just like this: / a sigh, a cry, a hungry kiss
/ the Gates of Love they budged an inch / I can't say much has happened
since / but CLOSING TIME
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail