Subj : Filtering a list of messages
To   : Digital Man
From : Nightfox
Date : Thu Nov 09 2023 01:17 pm

Hi DM,

For my message reader, when reading a sub-board, currently I have it using MsgBase.get_all_msg_headers() and then filtering it, removing vote headers and deleted messages (if the user can't view them), so it only displays messages the user can read.

It seems this is the best way to do that from JS (and it looks like msglist.js is basically doing the same thing?).  Another sysop mentioned he has sub-boards with 100,000+ messages, and it can be fairly slow to load & filter them.  I'm curious if there is a faster way to do that (or, is it possible for something faster to be made available to JS to do this task)?

Nightfox

---
� Synchronet � Digital Distortion: digitaldistortionbbs.com