Moin, * Michelle Konzack wrote (2006-04-24 13:18): >In procmail ist es noch einfacher: Äh, ja klar. > :0 > * ^X-Mailing-List:.*<debian-[-a-zA-Z0-9]+@lists\.debian\.org> > { > :0c > * ^Received:.*uol\. > .ATTENTION.TEST.uol/ > > :0 > * ^X-Mailing-List:.*<debian-\/[-a-zA-Z0-9]+ > .ML_debian.$MATCH.$MOBOX/ > } > > SPAMTAG="" >} >-------------------------------------------------------------------- > >Vor allem der lezte abschnitt ist interessant, denn er sortiert >absolut ALLE Mailinglisten von l.d.o ein, ohne das ich was >nachträglich mit jeder neuen Liste editieren muß. :-) Schöner Trick. Warum das doppelte Matching? Ungetestet, aber mit Maildrop könnte das so klappen: if (/^X-Mailing-List:.*<debian-![-a-zA-Z0-9]+!@lists\.debian\.org>/) { box = $MATCH2 if (/^Received:.*uol\./) { cc .ATTENTION.TEST.uol/ } to "$box/" } Thorsten -- A: Because we read from top to bottom, left to right. Q: Why should i start my reply below the quoted text?
Attachment:
pgplStO3_ZJmY.pgp
Description: PGP signature