|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Eric Smith (es_at_fruitcom.com)
Date: Thu Jan 09 2003 - 03:19:42 CST
Don't use explicit rules for list matching - I use the following
which automatically catch any list and is maintainance free.
:0:
* ^x-mailing-list:([^ ]*\/\<.*)
`echo $MATCH|sed -e 's/[
\.>].*//g' -e 's/.*[ <]//' -e 's/.*://'`
:0:
* ^list-post:([^ ]*\/\<.*)
`echo $MATCH|sed -e 's/[
\.>].*//g' -e 's/.*[ <]//' -e 's/.*://'`
#* ^(list-id|resent-to):([^ ]*\/\<.*) removed the resent-to cause mutt sends bounce with this
:0:
* ^(list-id):([^ ]*\/\<.*)
`echo $MATCH|sed -e 's/[
\.>].*//g' -e 's/.*[ <]//' -e 's/.*://'`
:0:
* ^Sender:.*owner-(\/.*)
`echo $MATCH|sed -e 's/[
\.>].*//g' -e 's/.*[ <]//' -e 's/.*://'`
:0:
* ^Delivered-To:.*mailing list.*(\<\/.*)
`echo $MATCH|sed -e 's/[
\.>].*//g' -e 's/.*[ <]//' -e 's/.*://'`
:0:
* ^list-post:([^ ]*\/\<.*)
`echo $MATCH|sed -e 's/[
\.>].*//g' -e 's/.*[ <]//' -e 's/.*://'`
:0:
* ^Mailing-list:([^ ]*\/\<.*)
`echo $MATCH|sed -e 's/[
\.>].*//g' -e 's/.*[ <]//' -e 's/.*://'`
Simon J Mudd said:
> phil
Redbrick.DCU.IE (Philip Reynolds) writes:
>
> > This mailing list always adds a "Delivered-To:" header, pointing to
> > the list.
> >
> > My procmail rule (and it hasn't let 1 mail by yet) is:
> >
> > :0 :.postfix-users
> > * ^Delivered-To: .*postfix-users*
> > $mail/postfix-users
>
> Probably better to check by sender, which is what I do (piping into news):
>
> :0
> * ^Sender: owner-postfix-users
postfix.org
> | $MAILPOST list.postfix-users
>
> Simon
> --
> Simon J Mudd, Postfix RPM Packager, Amsterdam, The Netherlands.
> email: sjmudd
pobox.com, Tel: +31-627-592 627
-- Eric Smith
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]