[CentOS] Announce list filters
Maciej Zenczykowski
maze at cela.pl
Wed May 18 23:29:24 UTC 2005
Well, here's my .procmailrc file...
it seems to work pretty well, cutting most everything which isn't related
to CentOS 4 i386...
but it does rely on no 'x86_64 and i386' headers
(it'll accept 'i386 and x86_64', but it'll drop 'x86_64 and i386')
The regexps are a lot stricter then they would have to be, but I prefer to
have a strict match - it's less likely to make a mistake and match
something it shouldn't.
Note that none of the following match replies (Re:), since I'm not yet
sure what to do with them and whether they should even show up on the
announce-list....
(you will of course have to change /var/spool/mail/maze to your own
mailbox wherever it appears and change the second rule to match whatever
centos version and architecture you want - plus change the centos 4/3/2
matches at the end [note that order is important - you first want to match
to deliver and only then match to drop, hence '4' is first and '3' and '2'
follow...]
as an example CENTOS 2 for s390x (does it exist? [lol]) would have
"CentOS 4(\.[0-9])? i386" ---> "CentOS 2(\.[0-9])? s390\(x\)" in rule [2]
and the later CENTOS 4/3/2 changed to CENTOS 2/4/3 in rules [4/5/6]
hope that's understandable enough...)
Cheers,
MaZe.
###############################
##### CENTOS-ANNOUNCE BEG #####
###############################
##### [1] Ignore Digests
:0 H
* ^Subject: \[CentOS\] CentOS-announce Digest, Vol [0-9]+, Issue [0-9]+$
/dev/null
##### [2] Accept valid errata for CENTOS 4 i386
:0 H
* ^Subject: \[CentOS-announce\] CE[SBE]A-200[5-9][-:]([0-9][0-9][0-9](-[0-9][0-9])?|[01][0-9][0-3][0-9]-[0-9][0-9][0-9]):? ((Critical|Important|Moderate|Low|Information|BUG fix|Bugfix|Enhancement) |)CentOS 4(\.[0-9])? i386
/var/spool/mail/maze
##### [3] Ignore any other valid errata
:0 H
* ^Subject: \[CentOS-announce\] CE[SBE]A-200[5-9][-:]([0-9][0-9][0-9](-[0-9][0-9])?|[01][0-9][0-3][0-9]-[0-9][0-9][0-9]):? ((Critical|Important|Moderate|Low|Information|BUG fix|Bugfix|Enhancement) |)CentOS [234](\.[0-9])? (i386|ia64|x86_64|s390\(x\))
/dev/null
##### [4] Accept other CENTOS 4
:0 H
* ^Subject: \[CentOS-announce\] .*CentOS( |-|)4
/var/spool/mail/maze
##### [5] Ignore other CENTOS 3
:0 H
* ^Subject: \[CentOS-announce\] .*CentOS( |-|)3
/dev/null
##### [6] Ignore other CENTOS 2
:0 H
* ^Subject: \[CentOS-announce\] .*CentOS( |-|)2
/dev/null
##### [7] We should possibly do something about Product Releases
#* ^Subject: \[CentOS-announce\] Release Announcement: $name $version $arch
##### [8] Accept anything else which hasn't been classified...
:0 H
* ^Subject: \[CentOS-announce\]
/var/spool/mail/maze
###############################
##### CENTOS-ANNOUNCE END #####
###############################
-------------- next part --------------
###############################
##### CENTOS-ANNOUNCE BEG #####
###############################
##### Ignore Digests
:0 H
* ^Subject: \[CentOS\] CentOS-announce Digest, Vol [0-9]+, Issue [0-9]+$
/dev/null
##### Accept valid errata for CENTOS 4 i386
:0 H
* ^Subject: \[CentOS-announce\] CE[SBE]A-200[5-9][-:]([0-9][0-9][0-9](-[0-9][0-9])?|[01][0-9][0-3][0-9]-[0-9][0-9][0-9]):? ((Critical|Important|Moderate|Low|Information|BUG fix|Bugfix|Enhancement) |)CentOS 4(\.[0-9])? i386
/var/spool/mail/maze
##### Ignore any other valid errata
:0 H
* ^Subject: \[CentOS-announce\] CE[SBE]A-200[5-9][-:]([0-9][0-9][0-9](-[0-9][0-9])?|[01][0-9][0-3][0-9]-[0-9][0-9][0-9]):? ((Critical|Important|Moderate|Low|Information|BUG fix|Bugfix|Enhancement) |)CentOS [234](\.[0-9])? (i386|ia64|x86_64|s390\(x\))
/dev/null
##### Accept other CENTOS 4
:0 H
* ^Subject: \[CentOS-announce\] .*CentOS( |-|)4
/var/spool/mail/maze
##### Ignore other CENTOS 3
:0 H
* ^Subject: \[CentOS-announce\] .*CentOS( |-|)3
/dev/null
##### Ignore other CENTOS 2
:0 H
* ^Subject: \[CentOS-announce\] .*CentOS( |-|)2
/dev/null
##### We should possibly do something about Product Releases
#* ^Subject: \[CentOS-announce\] Release Announcement: $name $version $arch
##### Accept anything else which hasn't been classified...
:0 H
* ^Subject: \[CentOS-announce\]
/var/spool/mail/maze
###############################
##### CENTOS-ANNOUNCE END #####
###############################
:0 H
* ^Subject:
/var/spool/mail/maze
More information about the CentOS
mailing list