[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 23:00:50 CEST

kfogel@collab.net wrote:
> Christopher Ness <chris@nesser.org> writes:
> > 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.
>
> Instead of checking FROM, TO, and CC, why not unduplicate based on
> Message-ID? This is part of the purpose of the Message-ID header, as
> I understand it.

The problem with doing that is that the message-id does not say
anything about where the message was sent. So if the message was sent
to you, the user list, the dev list, you will get three messages that
all have the same message id.

The first will probably get to you first because it will bypass the
mailing list and go direct. Or perhaps last if you have greylisting
at your site because that will force a delay by design. Or perhaps
not at all if the person replying is sending from a dynamic IP address
and one blocks based upon DUL RBLs. So for me I really want all three
because they are literally being sent to different forums. But that
is not what the OP wanted.

So it is given that you can use the message-id to know the message is
a duplicate. Then you can use the procmail rule to drop duplicate
messages and just keep the first one that you receive.

  :0 Wh: msgid.lock
  | formail -D 8192 msgid.cache

Then the problem is the same as before. You still need to know how to
file the message. The message-id says nothing about where to file the
message. At that point you are right back to the point of the
discussion which is to look at the To: and Cc: addressing and pick a
method to file it according to your tastes.

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 23:59:00 2005

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