procmail
[Top] [All Lists]

[SOLVED] Re: create sub-subfolders from $MATCH

2004-06-07 08:47:36
Hello to all,

and special thanks to "Scott Wiersdorf" and "Ruud H.G. van Tol

For now it works perfectly and I have an INCLUDERC:

  ____ ( '/home/michelle/.procmail/bug-tracking-system' ) ______________
 /
|  # Filter for the Debian GNU/Linux Package Tracking System (PTS) 
|  # and Bug Tracking System (BTS)
|  # 
|  # GNU Public License v2
|  # 
|  # Use it as you like
|  
|  # Kill unneeded headers to save disccpace in maildir
|  :0 fh
|  * ^To:.*(xxx-xxxxxxxx-xxxxxx(_at_)xxxxxxx(_dot_)xx)
|  * ^Subject:.*(Debian Bugs information)
|  | formail -f -I References: -I In-Reply-To:
|  
|  # Remove the long and unneccesary Subject for better viewing
|  # in mutt on the console
|  :0 fh
|  * ^To:.*(xxx-xxxxxxxx-xxxxxx(_at_)xxxxxxx(_dot_)xx)
|  * ^Subject:.*(Debian Bugs information)
|  | sed s/Debian\ Bugs\ information\:\ //
|  
|  # A <SPACE> and a <TAB>
|  SP='         '
|  
|  # Swap Characters with
|  Charswap = 
"Aa:Bb:Cc:Dd:Ee:Ff:Gg:Hh:Ii:Jj:Kk:Ll:Mm:Nn:Oo:Pp:Qq:Rr:Ss:Tt:Uu:Vv:Ww:Xx:Yy:Zz:00:11:22:33:44:55:66:77:88:99"
|  
|  # Filter all source packages in the folder "Debian_PTS"
|  # with alphanumerical subfolders
|  :0
|  * $ ^X-PTS-Package:.*\/[^$SP]+$
|  * FOLDER ?? ^\/.+
|  {
|      PACKAGE = FOLDER
|      
|      :0
|      * FOLDER ?? ^\/.
|      * Charswap ?? :$\$FOLDER\/.
|      Debian_PTS/$FOLDER/$PACKAGE/
|      :0E
|      Debian_PTS/@/$PACKAGE/
|  }
|  
|  # Filter all Packages which has no "X-PTS-Package"
|  :0
|  * $ ^X-Debian-PR-Package:.*\/[^$SP]+$
|  * PACKAGE ?? ^\/.+
|  Debian_PR/$PACKAGE/
|  
|  # Filter all packages from BTS in a seperatly folder tree. 
|  # Need a workaround to get the source package to each Debian-Package.
|  :0
|  * ^To:.*(xxx-xxxxxxxx-xxxxxx(_at_)xxxxxxx(_dot_)xx)
|  * $ ^Subject:.*package \/[^$SP]+$
|  * FOLDER ?? ^\/.+
|  {
|      PACKAGE = FOLDER
|      
|      :0
|      * FOLDER ?? ^\/.
|      * Charswap ?? :$\$FOLDER\/.
|      Debian_PR/$FOLDER/$PACKAGE/
|      :0E
|      Debian_PR/@/$PACKAGE/
|  }
|  
|  # Default INBOX for PTS and BTS
|  :0
|  * ^X-Loop:.*(bugs.debian.org|packages.qa.debian.org)
|  Debian_PTS-PR-BTS/
|  
|  :0
|  * ^To:.*(xxx-xxxxxxxx-xxxxxx(_at_)xxxxxxx(_dot_)xx)
|  Debian_PTS-PR-BTS/
 \______________________________________________________________________


Note:   Because I have forgotten in a previosly Messages to hide my 
        BTS-E-Mail, I have gotten in the last 30 hours 20 SPAM's on 
        this E-Mail.

        Does this mailinglist provide a publich archive ?

Greetings and nice week
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>