mailman archiving sorting broken

Bug #519654 reported by Richard Tew
This bug report is a duplicate of:  Bug #266572: Fix to fallback of thread by subject. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Mailman
New
Undecided
Unassigned

Bug Description

This bug is for Mailman 2.1.x. Checking the mailman/2.1 branch shows that the problem still exists there. I am aware the focus is now on the 3.x branches. I am reporting this in case development is still being done on this branch.

Pipermail has indexes by subject, author and date. It stores by a tuple typed key.

When doing the default threading approach, HyperDatabase calls getOldestArticle with the subject.

    def getOldestArticle(self, archive, subject):
        self.__openIndices(archive)
        subject = subject.lower()
        try:
            key, tempid=self.subjectIndex.set_location(subject)
            self.subjectIndex.next()
            [subject2, date]= key.split('\0')
            if subject!=subject2: return None
            return tempid
        except KeyError:
            return None

Note the key used in the index operation is a string. This will always fail, because it is not the specialised article specific tuple that was actually used as a key by pipermail.

This bug was also reported here (but is attached to a milestone I cannot change):
https://bugs.launchpad.net/mailman/+bug/266572

Revision history for this message
Mark Sapiro (msapiro) wrote : Re: [Bug 519654] [NEW] mailman archiving sorting broken

Richard Tew wrote:
>
>This bug was also reported here (but is attached to a milestone I cannot change):
>https://bugs.launchpad.net/mailman/+bug/266572
>

I marked this as a duplicate of 266572. I also made some changes to
266572 and added a comment which you may not have seen because I did
that before I marked this as a duplicate.

In any case, I think the patch with 266572 is incomplete. If you have
any ideas on how to fix it, let me know.

--
Mark Sapiro <email address hidden> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.