[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: OT: Multiple Lists - Filtering multiple mails

From: Bob Proulx <bob_at_proulx.com>
Date: 2005-07-05 19:06:13 CEST

Christopher Ness wrote:
> I just joined the dev@ list and have been a member of the users list for
> a while. I notice that I'm going to be getting a lot more duplicate
> emails.

Such as this one. (And I don't read the dev list so I don't know what
discussion follows there, or even if my message will post to it
because I am not subscribed.) Crossposting is generally discouraged.

> I would like to parse out the duplicates with a procmail recipe. Does
> anyone have one out there that checks the FROM: TO: && CC: headers for
> the three possible email's (personal, users@, dev@) and drops in that
> order from left to right.
>
> If mail went to all 3, I'd only get the one from dev@
> If mail went to personal and users@ receive message from the users@ list
> discard the personal message.

Personally, I am using the following rule. This generically looks at
all of the mailing lists from subversion.tigris.org and places the
message in the folder that matches that mailing list. I am using
maildir format mailboxes. So there is no second ':' and a trailing
slash.

  :0
  * ^list-post: <mailto:[-a-zA-Z0-9]+@subversion.tigris.org>
  * ^list-post: <mailto:\/[-a-zA-Z0-9]+
  $MAILDIR/Lists/svn/$MATCH/

Use this for classic mbox style mailboxes.

  :0:
  * ^list-post: <mailto:[-a-zA-Z0-9]+@subversion.tigris.org>
  * ^list-post: <mailto:\/[-a-zA-Z0-9]+
  $MAILDIR/Lists/svn/$MATCH

I also use 'mutt' so my mutt configuration is to dynamically include
whatever mailboxes are there into the list of mailboxes.

  mailboxes `echo $HOME/Mail/Lists/svn/*`

This way I can subscribe and unsubscribe to whatever lists I want and
I don't have to change my rules at all. This is very nice and convenient.

But that is not what you asked for because it will log duplicates to
the different folders. That is of course what I want because each
list is unique and separate. But what you want it easy too.

> the three possible email's (personal, users@, dev@) and drops in that
> order from left to right.
>
> If mail went to all 3, I'd only get the one from dev@
> If mail went to personal and users@ receive message from the users@ list
> discard the personal message.

You might want to use something like this:

  :0
  * ^TO_users@subversion.tigris.org
  Lists/svn/users/

  :0
  * ^TO_dev@subversion.tigris.org
  Lists/svn/dev/

Again in maildir format. The following for mbox format folders.

  :0:
  * ^TO_users@subversion.tigris.org
  Lists/svn/users

  :0:
  * ^TO_dev@subversion.tigris.org
  Lists/svn/dev

Adjust the paths as you desire.

Bob

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jul 5 23:15:08 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.