Randal, 

The sample message from [DEUS Conosco] helped me find a somewhat
subtle bug in the sorting engine at mail-archive. Specifically, before
mail-archive starts a new list (correct behaviour in this case), it
looks very hard to find out if there is already an existing list.

The fuzzy_match routine is part of this process, and it gave a false
positive. Specifically, it was triggering on:

   a@b                     with candidates a@x and y@b

The fuzzy matching routine is supposed to only trigger on things like:

   [EMAIL PROTECTED]                   with candidate a@b

This bug in the sorting algorithm only shows up during list additions
in combination situations -- when independent usernames and domains in the
email separately match existing lists. As the service gets larger
and larger, this bug becomes more likely to trigger.

I have fixed the algorithm by adding a simple check (it required
adding about five lines of code) and the test message you sent me now
runs correctly. Thank you very much for finding and reporting this
problem -- I think it's been about a year since I last changed the
sorting engine for mail-archive.

Cheers,
Jeff





_______________________________________________
Gossip mailing list
[EMAIL PROTECTED]
http://jab.org/cgi-bin/mailman/listinfo/gossip

Reply via email to