procmail filter for mailinglist
Jay Daniels
tux at myt60.net
Tue Jul 14 22:41:45 UTC 2009
On Tue, 2009-07-14 at 08:24 +0200, Siggy Brentrup wrote:
> On Tue, Jul 14, 2009 at 01:42 -0400, Jay Daniels wrote:
> > I need an automatic procmail filter for list. This does not seem to
> > work - for this list anyway. What am I missing?
> >
> > :0
> > * ^X-BeenThere_.*ubuntu-users@
> ^
> | sorry, I don't recall '_' being a metacharacter
>
> Btw, I'm using Sender: for mailman lists too.
>
> > lists.ubuntu-users/
> >
> > :0 # Majordomo lists
> > * ^Sender: owner-\/[-a-zA-Z0-9_.]*
> > list.$MATCH/
> >
> > :0
> > * ^X-Mailing-List: <\/[-a-zA-Z0-9_.]* # SmartList lists
> > list.$MATCH/
>
> Here's part of my setup for ubuntu lists.
> --------
> # $URL: svn+ssh://svn/home/svn/adm/trunk/keuner/home/USER/dot.procmailrc $
> # $Id: dot.procmailrc 28 2009-07-08 20:32:45Z USER $
> PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin
> MAILDIR=/net/mail/USER
> DATE=`date --utc -I`
> DEFAULT=INBOX/
> LOGFILE=$MAILDIR/.log/$DATE.log
> LOGABSTRACT=all
> SPAMPROBE=/usr/bin/spamprobe
> LANG=en_US
>
> # Spamprobe stuff omitted
>
> :0
> *$? [ X$1 = Xubuntu ] # catches USER+ubuntu at doma.in
> {
> :0
> * ^Sender: ubuntu-users-bounces at lists\.ubuntu\.com$
> ubuntu/users/
> :0E
> * ^Sender: ubuntu-devel-bounces at lists\.ubuntu\.com$
> ubuntu/devel/
> :0E
> * ^Sender: ubuntu-devel-discuss-bounces at lists\.ubuntu\.com$
> ubuntu/devel-discuss/
> :0E
> * ^Sender: ubuntu-security-announce-bounces at lists\.ubuntu\.com$
> ubuntu/security-announce/
> :0E
> * ^Sender: ubuntu-de-bounces at lists.ubuntu.com$
> ubuntu/de/
> :0E
> * ^Sender: ubuntu-motu-bounces at lists.ubuntu.com$
> ubuntu/motu/
> :0E
> * ^Sender: upstart-devel-bounces at lists.ubuntu.com$
> ubuntu/upstart-devel/
> :0E
> ubuntu/
> }
>
> # a lot more stuff omitted
> ------
>
> HTH
> Siggy
There's got to be an easier way to use procmail with a variable with
list from mailman like the Majordomo filter above.
jay
More information about the ubuntu-users
mailing list