Great Circle Associates Majordomo-Workers
(September 1997)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: removing duplicate addresses
From: Jason L Tibbitts III <tibbs @ hpc . uh . edu>
Date: 16 Sep 1997 13:40:01 -0500
To: majordomo-workers @ greatcircle . com
In-reply-to: Marko Hotti's message of Tue, 16 Sep 1997 17:54:54 +0300 (EET DST)
References: <Pine.LNX.3.96.970916174541.814J-100000@lists.oulu.fi>

>>>>> "MH" == Marko Hotti <mhotti@lists.oulu.fi> writes:

MH> What is the bottom reason for this?

Who can remember?  I think it's always been this way.  I think it's broken,
too, which is why the 2.0 code always removes the first match unless you
tell it to remove all matching entries.  It will also remove by regex.

And duplicates can occur for other reasons.  What 'duplicate' means can
change after the fact by setting mungedomain.  This is an interesting
problem, because in 2.0 you don't (just) have mungedomain, you have
user-defined equivalences (aliases) and owner-defined equivalences
(transforms).  And a transform can do something like:

/(.*)\+.*(\@.*)/$1$2/

which turns tibbs+junk@sina.hpc.uh.edu into tibbs@sina.hpc.uh.edu, and

/(.*\@).*\.(hpc\.uh\.edu)/$1$2/

which turns tibbs@sina.hpc.uh.edu into tibbs@hpc.uh.edu.

They are applied in series.  Now, see the problem?  The owner can in one
motion make a whole range of addresses equivalent.  Safeguards prevent the
user from making things difficult, but it's nigh impossible and not
necessarily desirable to save the owner from himself.

How this is managed is that when you rekey the database (which regenerates
the canonical representation of the address from the stripped address and
the transforms) entries which turn out to be duplicates get eliminated.
(Actually with the text database they're kept around because duplicate keys
don't hurt anything, but other backends need not be so accommodating.)

 - J<


References:
Indexed By Date Previous: Re: removing duplicate addresses
From: Dave Wolfe <dwolfe@risc.sps.mot.com>
Next: Re: Working wrapper/Makefile (was Re: 0.0199709090 SET-ID help)
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>
Indexed By Thread Previous: Re: removing duplicate addresses
From: Dave Wolfe <dwolfe@risc.sps.mot.com>
Next: Re: removing duplicate addresses
From: "Brian L. Heess - home" <DMbong@krumm.commline.com>

Google
 
Search Internet Search www.greatcircle.com