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: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jul 5 19:32:58 2005