Hi Mark,

I've tested the modified HyperDatabase.py file and it does indeed reverse the 
chronological order of the archives (but only in date view).
And also as you said, it was necessary to "/bin/arch --wipe LISTNAME" to 
reverse any existing archives.

Thanks again,
Mark

***
And the patch refactored for style against 2.1.20 is

$ diff -u 2.1/Mailman/Archiver/HyperDatabase.py

def first(self, archive, index):
self.__openIndices(archive)
+ if index == 'date':
+ dateIndex = 1
+ else:
+ dateIndex = 0
index = getattr(self, index + 'Index')
try:
+ if dateIndex == 1:
+ index.sorted.reverse()
key, msgid = index.first()
return msgid
except KeyError:
------------------------------------------------------
Mailman-Users mailing list [email protected]
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to