procmail
[Top] [All Lists]

create sub-subfolders from $MATCH

2004-06-04 12:48:11
Hello, 

the regexp drives me crazy !!!

This works now:

  ____ ( /home/michelle/.procmail/bug-tracking-system ) ________________
 /
|  SP='   '
|  
|  :0
|  * ^To:.*(bug-tracking-system(_at_)freenet(_dot_)de)
|  * $ ^Subject:.*package \/[^$SP]+$
|  * $MATCH ?? ^\/[^$]+
|  BTS/$MATCH/
 \______________________________________________________________________

but I get to many (more then 1200) directories in =BTS and I like to 
make subfolders with the firs leter of a Package name like

BTS/a/a2ps
    b/bc
    ...
    x/xserver-xree86

How can I do that ?
And what I does not unterstand, what the variable $SP does...

And then I need for the PTS the same recipe but the header has only one 
one word like

X-Debian-PR-Package: procmail

Please if you answer, write an small explanation why it is like you 
write because I must learn the stuff

Thanks again
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/ 
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature

_______________________________________________
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>