procmail
[Top] [All Lists]

Re: create sub-subfolders from $MATCH

2004-06-07 05:52:42
On Sun, Jun 06, 2004 at 03:31:55PM +0200, Michelle Konzack wrote:
Hello Scott, 

Thanks for the explanations...

You're welcome. Be sure to thank all the folks (namely David Tamkin
and Ruud) who found problems with my original replies.

Am 2004-06-04 14:22:12, schrieb Scott Wiersdorf:

   :0
   ## save the first letter of the folder name in MATCH
   * FOLDER ?? ^\/.
   BTS/$MATCH/$FOLDER/

must be: BTS/$FOLDER/$MATCH/

No, if you want folders of type 'BTS/a/a2sp' as you described in your
original email, you better leave it as:

    BTS/$MATCH/$FOLDER/

$MATCH contains the first character of $FOLDER (see the comment in the
recipe). If this confuses you, you might want to use different
variable names than the ones I've used as this recipe has evolved.

Note that the intermediate directory (a-z, etc.) must already exist:
procmail will not create it for you (it will only create the final
directory).

The directories already exist... 3469a-z

Ok. That's good.

Scott
-- 
Scott Wiersdorf
scott(_at_)perlcode(_dot_)org

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