Subj : Messagebase skipping a number To : Nightfox From : Digital Man Date : Sat Nov 19 2016 10:58 pm Re: Messagebase skipping a number By: Nightfox to echicken on Sat Nov 19 2016 09:54 pm > Re: Messagebase skipping a number > By: echicken to Nightfox on Sat Nov 19 2016 23:15:05 > > Ni>> Today, while using my custom JS message reader, I noticed that one > Ni>> of my message sub-boards appears to be skipping an offset. For > Ni>> example, message number 3405 (offset 3404) doesn't seem to exist. My > Ni>> message reader sees messages 3404 and 3406 as valid messages, but > Ni>> there's nothing at message number 3405 (which would be offset 3404). > Ni>> When I use the built-in reader, > > ec> Nothing as in "no message header" (you try to read the header and get > ec> 'null') or nothing as in "no message body" (null), or both? > > It looks like the message header is null. Doesn't your reader already filter out some messages based on attributes (deleted messages, unvalidated messages, private mesages)? You could just add the new VOTE and POLL attributes to your checking/filtering logic. The main advantages of using the get_all_msg_headers() method is speed (that's why it was created) and it now tallies the votes for you and puts the results in the message headers (currently, just upvotes and downvotes). The main disadvantage is that it didn't exist before sbbs v3.16. digital man Synchronet/BBS Terminology Definition #21: FF = Form Feed (ASCII 12, Ctrl-L) Norco, CA WX: 61.1øF, 48.0% humidity, 1 mph S wind, 0.00 inches rain/24hrs .