Subj : Messagebase skipping a number
To   : echicken
From : Nightfox
Date : Sat Nov 19 2016 09:23 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?

I'd have to do some debugging to find out.

ec> I'm wondering if this is related to the new 'vote messages'. They coexist
ec> with the rest of the messages in a sub, but have no message body, have a
ec> special attribute in the header, have no subject line, and are probably
ec> different in a couple of other ways.

From Digital Man's reply, it sounds like those are indeed vote messages.  It
sounds like I'll have to refactor my reader a bit to use get_all_headers and
not get the vote messages instead of getting each header one at a time, as it's
currently doing.

Nightfox

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