OSEC

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

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    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:
    > philRedbrick.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-userspostfix.org
    > | $MAILPOST list.postfix-users
    >
    > Simon
    > --
    > Simon J Mudd, Postfix RPM Packager, Amsterdam, The Netherlands.
    > email: sjmuddpobox.com, Tel: +31-627-592 627

    -- 
    Eric Smith