procmail filter for mailinglist
Siggy Brentrup
ubuntu at psycho.i21k.de
Tue Jul 14 06:24:23 UTC 2009
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
--
Please don't cc: me when replying on the list.
bsb-at-psycho-dot-informationsanarchistik-dot-de
or: bsb-at-psycho-dot-i21k-dot-de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090714/7ecea564/attachment.sig>
More information about the ubuntu-users
mailing list