• thread_id in message header

    From Nightfox@DIGDIST to Digital Man on Saturday, October 11, 2014 12:12:18
    Hi DM,

    If I print the properties of a message header, one of the properties is thread_id. I'm guessing all messages in a sub-board that belong to a particular thread will have the same thread ID, is that correct? Also, in what version of Synchronet was thread_id introduced? I don't see it on the JavaScript documentation page:
    http://www.synchro.net/docs/jsobjs.html

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion BBS - digitaldistortionbbs.com
  • From echicken@ECBBS to Nightfox on Saturday, October 11, 2014 17:01:40
    Re: thread_id in message header
    By: Nightfox to Digital Man on Sat Oct 11 2014 12:12:18

    If I print the properties of a message header, one of the properties is thread_id. I'm guessing all messages in a sub-board that belong to a particular thread will have the same thread ID, is that correct? Also, in

    This is correct as far as I know.

    thread_id is also the number of the original message in the thread. (The original message may or may not still exist.) If the message predates the addition of this property, then the value will be 0.

    what version of Synchronet was thread_id introduced? I don't see it on

    It was introduced after 3.15b, in March 2012 according to the commit log. So if you want your code to run on pre-3.16 systems, check that (typeof header.thread_id == "number") before attempting to make use of that value.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    ■ Synchronet ■ electronic chicken bbs - bbs.electronicchicken.com
  • From Digital Man to Nightfox on Saturday, October 11, 2014 22:19:27
    Re: thread_id in message header
    By: Nightfox to Digital Man on Sat Oct 11 2014 12:12 pm

    Hi DM,

    If I print the properties of a message header, one of the properties is thread_id. I'm guessing all messages in a sub-board that belong to a particular thread will have the same thread ID, is that correct? Also, in what version of Synchronet was thread_id introduced?

    Correct. It's not 100% accurate for networked message areas however.

    It was introduced in v3.16 (work in progress).

    I don't see it on the
    JavaScript documentation page:
    http://www.synchro.net/docs/jsobjs.html

    Yup, that's why. :-)

    digital man

    Synchronet "Real Fact" #3:
    Synchronet version 3 is written mostly in C, with some C++, x86 ASM, and Pascal.
    Norco, CA WX: 68.2°F, 82.0% humidity, 0 mph SSW wind, 0.00 inches rain/24hrs
  • From Nightfox@DIGDIST to Digital Man on Saturday, October 11, 2014 23:03:33
    Re: thread_id in message header
    By: Digital Man to Nightfox on Sat Oct 11 2014 22:19:27

    is thread_id. I'm guessing all messages in a sub-board that belong to
    a particular thread will have the same thread ID, is that correct?
    Also, in what version of Synchronet was thread_id introduced?

    Correct. It's not 100% accurate for networked message areas however.

    It was introduced in v3.16 (work in progress).

    I don't see it on the
    JavaScript documentation page:
    http://www.synchro.net/docs/jsobjs.html

    Yup, that's why. :-)

    I see, thanks. :)

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion BBS - digitaldistortionbbs.com