Subj : thread_id in message header
To : Nightfox
From : echicken
Date : Sat Oct 11 2014 05:01 pm
Re: thread_id in message header
By: Nightfox to Digital Man on Sat Oct 11 2014 12:12:18
Ni> If I print the properties of a message header, one of the properties is
Ni> thread_id. I'm guessing all messages in a sub-board that belong to a
Ni> 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.
Ni> 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.