Closed Bug 495109 Opened 11 years ago Closed 11 years ago
Provide a reverse enumerator for messages in ns
so that one can efficiently and cheaply get the last N messages in a folder.
This adds a ReverseEnumerateMessages() method to nsIMsgDatabase which should give you the newest message first - let me know if this works for you. It would be good to have a test case for this - EnumerateMessages is already exercised by the existing test cases, but it wouldn't hurt to have a specific test that does both kinds of enumeration.
Comment on attachment 380288 [details] [diff] [review] very lightly tested whoops, forgot to ask for review. Davida said this is working for him.
Davida needs this for his folder summary work, so putting in b3.
Status: NEW → ASSIGNED
Whiteboard: [needs review standard8]
Target Milestone: --- → Thunderbird 3.0b3
I'm doing some other cleanup of the db enumerators in bug 492963
Comment on attachment 380288 [details] [diff] [review] very lightly tested Looks good. r/sr=Standard8
fix checked in - now to unbitrot the patch in bug 492963
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.